0
else: Inavlid Syntax!
getting error while using else statement :- z=7 if z==8: print("yes") else: SyntaxError: invalid syntax
3 ответов
+ 2
remove the tab before else.
+ 2
Align if and else in the same 'invisible' line (called as indentation).
0
got it! thanks!