Python 3 programming tutorial: While Loop

Опубликовано: 17 Сентябрь 2024
на канале: sentdex
578k
5k

The two distinctive loops we have in Python 3 logic are the "for loop" and the "while loop." Both of them achieve very similar results, and can almost always be used interchangeably towards a goal. Many times it comes down to programmer preference, or is reliant on efficiency. Generally, the for loop can be more efficient than the while loop, but not always.

The idea of the While loop is:
While something is the case, do the following block of code.

Python 3 Programming tutorial Playlist:

Sample code for this basics series:

This Python 3.3 programming tutorial covers the while loop within Python.






Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6