+ 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 Réponses
+ 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?