Skip to content

Commit

Permalink
new file: cw-odd-or-even.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mpsb committed Feb 10, 2020
1 parent 2708eb8 commit c18ff50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions codewars/python/cw-odd-or-even.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def odd_or_even(arr):
if sum(arr)%2 == 0:
return 'even'
else:
return 'odd'

0 comments on commit c18ff50

Please sign in to comment.