Whats wrong with elif code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Whats wrong with elif code

x=5 if x>6: print('6') elif x==5: print('5') there is awrong in elif statment and i cant figure it out always give me error

18th Jul 2018, 8:05 PM
Mohamed Kamel Nada
Mohamed Kamel Nada - avatar
5 Answers
+ 2
Sololearn's editor doesn't always do that
18th Jul 2018, 8:14 PM
TurtleShell
TurtleShell - avatar
+ 1
18th Jul 2018, 8:11 PM
TurtleShell
TurtleShell - avatar
+ 1
Mohamed Kamel Nada When it comes to Python, the Sololearn code editor doesn't auto-indent code for you
18th Jul 2018, 10:32 PM
Dlite
Dlite - avatar
0
shouldnt i just press enter and it will be like auto identation
18th Jul 2018, 8:13 PM
Mohamed Kamel Nada
Mohamed Kamel Nada - avatar
0
thx guys it did work out :)
19th Jul 2018, 5:21 AM
Mohamed Kamel Nada
Mohamed Kamel Nada - avatar