- 1

can anyone explain me For Loops and While Loops in simple term?

Python, for loops and while loops

26th Jul 2021, 7:24 AM
Kaleb
Kaleb - avatar
2 Answers
+ 3
Hi! A recommendation is to start testing the different loop concepts untill you understand them, but: • use the for loop when the number of repetitions are known. • use the while loop oherwise; a condition is instead tested and will determine if the repetitions will continune. • understand the concept of iterators (for loop), and how to use break, continue and else together with the loop. • The courses on SoloLearn contains enough info to getting started.
26th Jul 2021, 8:01 AM
Per Bratthammar
Per Bratthammar - avatar
0
Search on YouTube u will understood much better
26th Jul 2021, 7:29 AM
A S Raghuvanshi
A S Raghuvanshi - avatar