how to know whats the body of while loop? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how to know whats the body of while loop?

i just saw the example in that lesson, and it dosent used any curly bases like there are in c++ so how does we decide how much lines are while loop body below it and when does next line of code start, dont all the lines below it gets included in the loop? thanks in advance for your answers

2nd Jun 2017, 3:39 PM
Mayank
Mayank - avatar
1 Answer
+ 4
In Python you use indentation instead of curly brackets like in c++.
2nd Jun 2017, 3:43 PM
Amarie