1
0
Fork 0
mirror of https://gitlab.com/mfocko/CodeWars.git synced 2024-06-22 16:07:18 +02:00
CodeWars/7kyu/odd_or_even/solution.py
Matej Focko fc899b0b02
chore: initial commit
Signed-off-by: Matej Focko <mfocko@redhat.com>
2021-12-28 16:19:58 +01:00

6 lines
99 B
Python

def oddOrEven(arr):
if sum(arr) % 2 == 0:
return 'even'
else:
return 'odd'