0

Python loops

>>>How are loops created in python? >>>The lesson is quite confusing(lesson 11,Module 2, Python Course). >>> Please I will appreciate a very detailed answer. >>>Thanks.

6th Aug 2018, 6:46 PM
Toyin Aina
Toyin Aina - avatar
6 Respuestas
+ 7
I agree that Sololearn lessons can be misleading or confusing. I hope this will help. https://youtu.be/885qKiiKisI covers while loops https://youtu.be/HFQGxh1jY3g covers for loops
6th Aug 2018, 11:02 PM
Christine
Christine - avatar
+ 3
There are comments on each lesson. Many people tried to explain. Maybe take a look at them.
8th Aug 2018, 8:00 AM
Paul
Paul - avatar
+ 2
for i in range 5: print ("Hi") This creates a loop with the variable "i" Each time the loop runs, i gets increased by 1 and Hi gets printed this goes on and on till variable i gets to 4 and the loop stops
6th Aug 2018, 9:27 PM
Dlite
Dlite - avatar
0
thanks
26th Aug 2019, 2:20 AM
Toyin Aina
Toyin Aina - avatar
0
it can be created by using while and terminated by using break
2nd Aug 2020, 8:42 AM
tmg_yail8
tmg_yail8 - avatar
0
By using loop and while.
4th Sep 2020, 3:53 AM
Ridowan Ahmed
Ridowan Ahmed - avatar