+ 1

What's wrong in the code? It isn't running

print(["even", "odd"][int(input()) % 2]

29th Sep 2018, 7:03 AM
partha
partha - avatar
2 Answers
+ 3
you forgot the right parenthesis of print()
29th Sep 2018, 7:12 AM
Kevin Dietrichstein
Kevin Dietrichstein - avatar
+ 2
oops missed it thanks Kevin
29th Sep 2018, 8:43 AM
partha
partha - avatar