18 Цикл while Python

Share this & earn $10
egoroff_channel
Published at : 07 Oct 2021
107033 views
3065
41

https://stepik.org/course/63085/promo
Записывайся на мой курс на Stepic, где найдешь много практических задач

Стать спонсором канала и получить доступ к дополнительным материалам по Python
https://www.youtube.com/channel/UCMcC_43zGHttf9bY-xJOTwA/join
https://boosty.to/egoroff_channel
https://www.patreon.com/artem_egorov

http://egoroffartem.pythonanywhere.com/course/python/tsikl-while

Конструкция цикла while:
while условие:
действие 1
действие 2

действиеN

Данный цикл необходим для повторения определенных действий до тех пока выполняется условие.

С помощью него можно
- обходить числа пока они меньше ( больше) определенного значения
- заставлять вводить пользователя до тех пор пока он не введет нужное значение
- обрабатывать списки и строки

Задания для самостоятельной работы

Вывести на экран все числа от 50 до 150 включительно с помощью цикла while.

Вывести на экран при помощи цикла while следующий ряд чисел: 13, 20, 27 …., 349.

Напишите программу, которая при помощи цикла while сделает обратный отсчет от 15 до 0 (включительно) и затем выведет "Поехали!" в самом конце.

Список квадратов
https://informatics.msk.ru/mod/statements/view.php?id=249

Утренняя пробежка
https://informatics.msk.ru/mod/statements/view3.php?id=249&chapterid=3062

Мишка и старший брат
http://codeforces.com/problemset/problem/791/A

Вася и носки
http://codeforces.com/problemset/problem/460/A

Ваня и кубики
http://codeforces.com/problemset/problem/492/A

http://egoroffartem.pythonanywhere.com/course/python/18
Подробная информация об этом уроке

Все видео этого курса можете найти на сайте
http://egoroffartem.pythonanywhere.com/course/python

или в Вк
https://vk.com/videos-177962775?section=album_1

Если кому нужна помощь, предлагаю индивидуальные занятия. Подробнее пишите в личку в вк
https://vk.com/artem_egoroff

https://vk.com/python.study
В данном группе можете найти информацию о новых видео и задать вопросы

pythonpython 3python с нуля

Sia - The Greatest

Sia - The Greatest

No More Hustle! 3 Time Genius Steps to Achieve Anything with Less Stress

No More Hustle! 3 Time Genius Steps to Achieve Anything with Less Stress

Paramedics Rescue An Unconscious Man After A House Party Goes Wrong | Emergency

Paramedics Rescue An Unconscious Man After A House Party Goes Wrong | Emergency

r/kidsarestupid | make sure to check your shoes...

r/kidsarestupid | make sure to check your shoes...

If You Are Happy And You Know It - Songs For Kids & Nursery Rhymes | Bichikids

If You Are Happy And You Know It - Songs For Kids & Nursery Rhymes | Bichikids

Davido - Fade (Official Audio) ft. Bella Shmurda

Davido - Fade (Official Audio) ft. Bella Shmurda

Sandra Bullock and Cate Blanchett talk Ocean's 8 and faux media reports

Sandra Bullock and Cate Blanchett talk Ocean's 8 and faux media reports

Roadtrip Tiktoks that explain their personality

Roadtrip Tiktoks that explain their personality

23 Insane Armor Stand Build Hacks in Minecraft

23 Insane Armor Stand Build Hacks in Minecraft

09 What is a Lot in Forex? - FXTM Learn Forex in 60 Seconds

09 What is a Lot in Forex? - FXTM Learn Forex in 60 Seconds

(ML 16.6) Gaussian mixture model (Mixture of Gaussians)

(ML 16.6) Gaussian mixture model (Mixture of Gaussians)

How to Organize Main Points of a Presentation

How to Organize Main Points of a Presentation

Scorpions - Holiday

Scorpions - Holiday

Gumball | Granny JoJo Comes To Stay - The Authority | Cartoon Network

Gumball | Granny JoJo Comes To Stay - The Authority | Cartoon Network

HU TAO - (UPDATED) Complete Guide - 3★/4★/5★ Weapons, Mechanics, Artifacts, Comps | Genshin Impact

HU TAO - (UPDATED) Complete Guide - 3★/4★/5★ Weapons, Mechanics, Artifacts, Comps | Genshin Impact

Worriers - Most Space (Official Music Video)

Worriers - Most Space (Official Music Video)

Occasionally

Occasionally

George Michael - An Easier Affair (Official Video)

George Michael - An Easier Affair (Official Video)

What Is Actuality? - Distinguish Direct Experience vs Concept

What Is Actuality? - Distinguish Direct Experience vs Concept

The Bathtub

The Bathtub

The Broker Who Made The Mafia Billions On Wall Street - Sal Romano

The Broker Who Made The Mafia Billions On Wall Street - Sal Romano

How We Learn to Read: Decoding

How We Learn to Read: Decoding

TUTORIAL Doll : how to paint a cloth doll face

TUTORIAL Doll : how to paint a cloth doll face

Corey Taylor - Bother

Corey Taylor - Bother

OneRepublic - Didn't I (Lyrics)

OneRepublic - Didn't I (Lyrics)

Was this Man Protecting a Child or Being an Unlawful Vigilante? | Accused: Guilty or Innocent? | A&E

Was this Man Protecting a Child or Being an Unlawful Vigilante? | Accused: Guilty or Innocent? | A&E

Blouse // "A Feeling Like This"

Blouse // "A Feeling Like This"

Olamide - First Of All (Official Video)

Olamide - First Of All (Official Video)

A continuous function equation.

A continuous function equation.

TOP 5 SUPPLEMENTS | SCIENCE EXPLAINED (17 STUDIES) | WHEN AND HOW MUCH TO TAKE

TOP 5 SUPPLEMENTS | SCIENCE EXPLAINED (17 STUDIES) | WHEN AND HOW MUCH TO TAKE

IS it time to denationalise Air India Part 1

IS it time to denationalise Air India Part 1

UP TO THE MARK IN ENGLISH SPEAKING

UP TO THE MARK IN ENGLISH SPEAKING

Ed Sheeran - How Would You Feel (Paean) [Live Acoustic Session]

Ed Sheeran - How Would You Feel (Paean) [Live Acoustic Session]

The Woman Who Is Constantly Sexually Aroused | Living Differently

The Woman Who Is Constantly Sexually Aroused | Living Differently

Housefires - Garments // feat. Nate Moore (Official Music Video)

Housefires - Garments // feat. Nate Moore (Official Music Video)

Tanning Salon Sacramento, California

Tanning Salon Sacramento, California

Testing Viral Minecraft Life Hacks That Are 100% Fact

Testing Viral Minecraft Life Hacks That Are 100% Fact

Examining permanent establishments and recent developmetns in Italy and India

Examining permanent establishments and recent developmetns in Italy and India

Jennifer Hudson - And I Am Telling You I'm Not Going

Jennifer Hudson - And I Am Telling You I'm Not Going

Ardian Bujupi & Xhensila - PANORAMA (prod. MB & Unleaded)

Ardian Bujupi & Xhensila - PANORAMA (prod. MB & Unleaded)

Dutchavelli - Surely (Official Audio)

Dutchavelli - Surely (Official Audio)

Man on the Moon w/ Mike Mills (Live in New Orleans)

Man on the Moon w/ Mike Mills (Live in New Orleans)

L'uZine - Excellent ( Clip officiel )

L'uZine - Excellent ( Clip officiel )

To Eire

To Eire

Trailer Dreame Story - ANOTHER CHOICE

Trailer Dreame Story - ANOTHER CHOICE

Brave - Prologue (English)

Brave - Prologue (English)

Bad - Blaiz Fayah,Tribal Kush [2021]

Bad - Blaiz Fayah,Tribal Kush [2021]

21. IGCSE ECONOMICS 0455: C21 PRODUCTION AND FIRMS

21. IGCSE ECONOMICS 0455: C21 PRODUCTION AND FIRMS

PERTEMANAN 15 TAHUN

PERTEMANAN 15 TAHUN