+ 1
Help!!
Hi everyone! Can someone tell me why this is wrong and where? Thanks in advance! x = 15 y = 30 if y == 15*2: print("correct") else: print("nada")
7 Answers
+ 6
It's the indentation. The else should have the same indentation as the corresponding if.
x = 15
y = 30
if y == 15*2:
print("correct")
else:
print("nada")
+ 2
Oooh wow i see! thanks guys!
+ 1
dont use tab before else
wrong code:
else:
print("nada")
correct code:
else:
print("nada")
+ 1
Mad Gipnoz anytime!đđđ
0
what is your answer?
0
You're welcome Martino Rabaioli đ
0
Jingga Sona sorry man. I'm so confused đ... Y did u write my name?