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

11th Mar 2020, 1:49 PM
Tiger ROAR
Tiger ROAR - avatar
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
11th Mar 2020, 1:57 PM
HonFu
HonFu - avatar
0
Just maintain indent and you can use else in place of elif .
11th Mar 2020, 4:20 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
11th Mar 2020, 4:21 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
0
You can see this
11th Mar 2020, 4:21 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar