0
Help me in this code plz
I can't figure out why it is not working....it shows that it requires a indented block https://code.sololearn.com/cj7DGWG9rUp8/?ref=app
6 odpowiedzi
+ 1
Like this:
num=int(input("enter a number"))
if num%2==0:
print ('the numbe is even')
elif num%2!=0:
print ("the number is odd")
Also read (not run) this, because this is an important topic you need to be confident with:
https://code.sololearn.com/cT5BRIbkia21/?ref=app
0
Just maintain indent and you can use else in place of elif .
0
You can see this