Anyone please help in explaining the loop. It's a bit confusing especially with the given example in the tutorial. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Anyone please help in explaining the loop. It's a bit confusing especially with the given example in the tutorial.

12th Jan 2019, 9:53 AM
Elvis Stephen
Elvis Stephen - avatar
3 Answers
+ 4
You want to tell a kid how to walk, instead of saying take one step now, after the kid have take the step, you say the same thing 10 times, loop allow you to give instruction ones and you sit down and watch the instruction carried out, in the case of the kid, using loop all you have to say is that take a step after you have taken a step, take 10 more steps, you can see that all you have to do is one's and not repeat the same word all the time I hope this would help
12th Jan 2019, 10:28 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 3
Ipang loops not loop function. The example given in the tutorial got me confused with the whole concept.
12th Jan 2019, 11:26 AM
Elvis Stephen
Elvis Stephen - avatar
+ 3
*Asterisk* thanks
12th Jan 2019, 11:28 AM
Elvis Stephen
Elvis Stephen - avatar