0

How do I use loop in pythan

Please help me I will be very thankful to you

3rd Jul 2025, 4:01 PM
illegalperson46
illegalperson46 - avatar
3 odpowiedzi
+ 7
illegalperson46 , we see in your profile that you have already started the `coding for data` tutorial. however, we do not know how far you have progressed. it would be a good idea to learn the course strait from the beginning. everything related to loops is explained and practiced in the `control flow` chapter. so please spend some time, effort, and patience by learning from the tutorial.
3rd Jul 2025, 6:45 PM
Lothar
Lothar - avatar
+ 3
Have you completed that part of the course? We had a similar question the other day, let me see if I can find it. Maybe the info there can help you too: https://www.sololearn.com/discuss/3331624/?ref=app https://www.sololearn.com/discuss/3331128/?ref=app
3rd Jul 2025, 5:10 PM
Ausgrindtube
Ausgrindtube - avatar
0
Normally we use loops depending on two sircunstanses For loop if you know how many times you whant to repeat an action and while loops if you don't Here is an example: Example one: For i in range(3): Print(“Hello") These will print Hello tree times But. i=0 While i<10: Print(“Hello") i+=1 It's diferent
5th Jul 2025, 3:01 PM
Josafat Villarrubia Estrada
Josafat Villarrubia Estrada - avatar