How to identify where the body of the loops end in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How to identify where the body of the loops end in python?

15th Oct 2016, 5:58 AM
Gokul Kishore
Gokul Kishore - avatar
4 Answers
+ 5
indentation. when the lines are unindented it is the end of the loop.
15th Oct 2016, 6:27 AM
Luke Armstrong
+ 15
yes ofcourse indentation is very important in python. not only for loops and also for def and if
27th Feb 2017, 10:12 AM
GOKULNATH MADHIVANAN
GOKULNATH MADHIVANAN - avatar
+ 4
its indentation.
4th Mar 2017, 2:53 PM
Gokul Kishore
Gokul Kishore - avatar
+ 2
it is something called "beautify" in visual FoxPro .. isn't it...!?
4th Mar 2017, 2:48 PM
Manish Agrawal
Manish Agrawal - avatar