Python Tutorials for Beginners - While Loop and Break Statement

preview_player
Показать описание
Short and sweet: Python Tutorials for Beginners - While Loop and Break Statement
Рекомендации по теме
Комментарии
Автор

you can make the while loop end based on a condition being met...

x = 0

while x < 3:
print(x)
x = x + 1

this loops 3 times

hunkimtutorials
Автор

what is the alternative way of not using break statement ?

johnnypark
welcome to shbcf.ru