Need help? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Need help?

What is the error ? :-( n = 1 while n <=5: print(n) n = n + 1

19th Nov 2018, 11:07 AM
Yash Jangid
Yash Jangid - avatar
2 Answers
+ 7
Yah the problem may well be one related to indentation. This needs to be consistent. See https://code.sololearn.com/cJxY7UYQ2gmh/?ref=app. Hope that helps.
19th Nov 2018, 11:15 AM
Richard Myatt
Richard Myatt - avatar
+ 4
may be indentation ... it changes code block in python...
28th Nov 2018, 3:04 PM
Prashanth Kumar
Prashanth Kumar - avatar