Truth and flow control in Python: Difference between revisions

wikademia>Guillom
m Reverted edits by 3rd sock of Molag bal (Talk) to last version by 69.132.52.158 using rollback
wikademia>Remi0o
mNo edit summary
Line 159: Line 159:


Simply put, use while when you don't know or can't calculate how many times a loop will run. If you can, use for.
Simply put, use while when you don't know or can't calculate how many times a loop will run. If you can, use for.
[[Category:Python]]
[[Category:Programming]]