0

What's problem with my python code"finding odd"

x=int(input()) if x<0: print (str(x)+" is neither even nor odd number.") else : if x%2==0: print (str(x)+" is an even number.") else: print (str(x)+" is an odd number.")

7th Aug 2020, 8:56 AM
Sunand Kumar
5 Respostas
+ 1
show yor attempt first so we know where to help.
7th Aug 2020, 8:59 AM
Slick
Slick - avatar
+ 1
Indentation error Please check and rewrite line 4
7th Aug 2020, 9:06 AM
Vadivelan
0
This is the code.It produces error.
7th Aug 2020, 9:08 AM
Sunand Kumar
0
Thanks for your help.Problem is sorted now.
7th Aug 2020, 9:16 AM
Sunand Kumar