0
what is wrong in this code
x=7 y=6 z=10 if x==y: print("True") else: if x<=z: print("mined") else: print("hihi")
4 Answers
+ 7
Your tabs, or "whitespace" is off. It should look like:
x=7
y=6
z=10
if x==y:
print("True")
else:
if x<=z:
print("mined")
else:
print("hihi")
+ 4
you just should put tab-s correctly.. in python putting right tab is very important for if else statements to work, as here we don't have {} brackets in order to say where the "if" statement starts and where it ends.. Just look at Keto Z's code and compare it with yours.. you'll see the difference between the whitespacing (tabs) :)
+ 1
just hit backspace
0
how can i make whitespace on



