+ 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

19th Apr 2017, 10:10 AM
Anonymous
Anonymous - avatar
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
19th Apr 2017, 10:23 AM
Tato
Tato - avatar
+ 6
indentations matters! x = 6 if x == 2: print("Yes") else: print("No")
19th Apr 2017, 10:19 AM
Burey
Burey - avatar
+ 3
I know but it said unexpected indentation
19th Apr 2017, 10:20 AM
Anonymous
Anonymous - avatar
+ 3
kk fixed it
19th Apr 2017, 10:20 AM
Anonymous
Anonymous - avatar
+ 2
thx
19th Apr 2017, 10:24 AM
Anonymous
Anonymous - avatar
19th Apr 2017, 10:24 AM
Anonymous
Anonymous - avatar