+ 3
Guys I need HELP
with an if or else statement check it out tell me what I did wrong https://code.sololearn.com/cR8F8775tVxY/?ref=app
6 Antworten
+ 13
You need to insert whitespace to indent "if" and "else" block. (4 spaces or 1 tab)
x = 6
if x == 2:
print("Yes") #this line belongs to "if" block
else:
print("No") #and this - to "else" block
+ 6
indentations matters!
x = 6
if x == 2:
print("Yes")
else:
print("No")
+ 3
I know but it said unexpected indentation
+ 3
kk fixed it
+ 2
thx