u/InterestingOnion9937

beginner learning python - is my if-else snytax correct

num = int (input ( "enter number :" ))

if num % 2 == 0:

print( "even" )

else:

print ("odd")

I started learning python recently. Is it written correctly

reddit.com
u/InterestingOnion9937 — 14 days ago