re: Daily Challenge #81 - Even or Odd VIEW POST

FULL DISCUSSION
 
nums = str(input())
numi = [int(n) for n in nums]
odd = [n for n in numi if n%2 == 1]
if sum(odd) > int(sum(numi)/2):
   print("Odd is greater than Even")
elif sum(odd) < int(sum(numi)/2):
   print("Even is greater than Odd")
else:
   print("Even and Odd are the same")

code of conduct - report abuse