[Tutor] Differences between while and for

mhysnm1964 at gmail.com mhysnm1964 at gmail.com
Sat Jun 15 00:53:43 EDT 2019


All,

 

In C, Perl and other languages. While only uses a conditional statement and
for uses an iteration. In python while and for seems to be the same and I
cannot see the difference. Python does not have an until (do while) where
the test is done at the end of the loop. Permitting a once through the loop
block. Am I correct or is there a difference and if so what is it?

 

Why doesn't Python have an until statement?

 



More information about the Tutor mailing list