CREATE do while loop 🔁 in Python 🐍 #shorts

preview_player
Показать описание
In order to create the equivalent of Do/While loops in Python: use
while True:
and
if exit condition:
break
Рекомендации по теме
Комментарии
Автор

by the way i think you can do




x = 0
While x != 10:
x = random.radint(1, 10)
print(x)
print("loop has been finished")

Dev_Neon