Jun-03-2020, 09:29 AM
(This post was last modified: Jun-03-2020, 09:30 AM by pyzyx3qwerty.)
In simple terms -
- For loop usually specifies an item inside a list, tuple, dictionary etc.
- While loop usually is used to carry out a process repeatedly until a given condition is satisfied
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs