Код: Выделить всё
for i in range(1, 11):
print(i)
Вот что я пробовал:
Код: Выделить всё
i = 1
while i
Подробнее здесь: [url]https://stackoverflow.com/questions/79204115/how-to-use-a-while-loop-to-print-numbers-from-1-to-10[/url]
Код: Выделить всё
for i in range(1, 11):
print(i)
Код: Выделить всё
i = 1
while i
Подробнее здесь: [url]https://stackoverflow.com/questions/79204115/how-to-use-a-while-loop-to-print-numbers-from-1-to-10[/url]