Python While Loops
Сообщение 2023-03-09 21:24:28
0
11Кб
While loops can be ran as long as the condition is True. Otherwise, it'll be skipped. A variable needs to be in it or else it'll loop forever in some scenarios. Here's an example of a while loop:
i = 1
while i < 6:
print(i)
i += 1
Поиск
Категории
- Arts
- Business
- Computers
- Игры
- Health
- Главная
- Kids and Teens
- Деньги
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Больше
The concept of the business environment
All living things, including humans, live in the environment. Besides Natural environment,...
Organizing Chart: Hats and What's Underneath?
Do we really need structure... It is good if everything works smoothly in the company: work...
Kabbadi - What is it?
Now the strangest martial art in the world can be followed on the Internet.Wrestling is not the...
What is philosophy?
Life, science and culture in general require from us and, above all, from young people,...
Easy Halloween Costumes: Quick and Creative Ideas
Halloween is just around the corner, and while some enjoy elaborate costumes, others prefer...