18 Цикл while Python

Share this & earn $10
egoroff_channel
Published at : 29 Oct 2021
110891 views
3184
44

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 с нуля

AVAION - Pieces

AVAION - Pieces

Top 10 Favorites from My Collection

Top 10 Favorites from My Collection

Daya - Sit Still, Look Pretty [LYRICS]

Daya - Sit Still, Look Pretty [LYRICS]

How to Make a Decision You Won’t Regret Later – Sadhguru

How to Make a Decision You Won’t Regret Later – Sadhguru

How to Сreate a  Listing Grid |  JetEngine Plugin

How to Сreate a Listing Grid | JetEngine Plugin

Billie Eilish - you should see me in a crown (Vertical Video)

Billie Eilish - you should see me in a crown (Vertical Video)

DIY CLOSET // MODERN Wardrobe with a drawer

DIY CLOSET // MODERN Wardrobe with a drawer

Regard, Kwabs - Signals (Lyric Video)

Regard, Kwabs - Signals (Lyric Video)

WHICH ARE YOU?! #shorts

WHICH ARE YOU?! #shorts

Stray Kids "Easy" M/V

Stray Kids "Easy" M/V

XXXTENTACION - youre thinking to much, stop it (prod. trbld boy)

XXXTENTACION - youre thinking to much, stop it (prod. trbld boy)

Are Rental Application Fees Legal?

Are Rental Application Fees Legal?

Grubbo - Files [Music Video] | GRM Daily

Grubbo - Files [Music Video] | GRM Daily

Gojo Satoru Showcase (An Infinite Adventure)

Gojo Satoru Showcase (An Infinite Adventure)

Yolte - Fantastic (Official Audio Video)

Yolte - Fantastic (Official Audio Video)

Why Rust Batteries May Be the Future of Energy - Iron Air Battery Technology

Why Rust Batteries May Be the Future of Energy - Iron Air Battery Technology

COVID-19 I Training to administer vaccines

COVID-19 I Training to administer vaccines

There Are Many Rooms

There Are Many Rooms

in addition

in addition

Rihanna - Needed Me

Rihanna - Needed Me

Hymn - The Best Choice

Hymn - The Best Choice

Corpulent (Original Mix)

Corpulent (Original Mix)

The Head | Official Trailer | HBO Max

The Head | Official Trailer | HBO Max

Bushcraft & Survival - A large wild beast fell from a high cliff / Part 6

Bushcraft & Survival - A large wild beast fell from a high cliff / Part 6

Talking about Your Home in English

Talking about Your Home in English

COMBAT! MAXH S1 E1 - Ξεχασμένο μέτωπο , Greek Subs

COMBAT! MAXH S1 E1 - Ξεχασμένο μέτωπο , Greek Subs

Family sponsorship- Spouse/Common Law/Conjugal relationship difference

Family sponsorship- Spouse/Common Law/Conjugal relationship difference

FIRST AID HACKS FOR SMART MOMS! Amazing Tricks From Crafty Parents

FIRST AID HACKS FOR SMART MOMS! Amazing Tricks From Crafty Parents

Alex Jones Found Liable for Defamation in Sandy Hook Case

Alex Jones Found Liable for Defamation in Sandy Hook Case

GALA - Faraway (Official Video)

GALA - Faraway (Official Video)

ASKING GUYS WHAT THEY PREFER

ASKING GUYS WHAT THEY PREFER

10+ Indulgent Chocolate Cake Decorating Ideas You'll Love | Quick And Easy Dessert Recipes

10+ Indulgent Chocolate Cake Decorating Ideas You'll Love | Quick And Easy Dessert Recipes

EXCLUSIVE One-Of-A-Kind Floorplan! This Motorhome is a WINNER!

EXCLUSIVE One-Of-A-Kind Floorplan! This Motorhome is a WINNER!

Set I :: Widespread Panic :: 2011.06.26 :: Red Rocks :: Morrison, CO

Set I :: Widespread Panic :: 2011.06.26 :: Red Rocks :: Morrison, CO

Problematical

Problematical

Gayla Peevey - The Christmas Hippo Song

Gayla Peevey - The Christmas Hippo Song

Honkai Impact 3rd v4.6 [Unequaled, Unrivaled] (1 HOUR EXTENDED)

Honkai Impact 3rd v4.6 [Unequaled, Unrivaled] (1 HOUR EXTENDED)

Minecraft, But You Can Mutate...

Minecraft, But You Can Mutate...

Yungen ft. Dappy - Comfortable (Official Video)

Yungen ft. Dappy - Comfortable (Official Video)

5 Reasons Your Next Bike Should Be… Cheap?

5 Reasons Your Next Bike Should Be… Cheap?

BLITZERS(블리처스) - 실수 좀 할게(Will Make a Mistake) Official MV

BLITZERS(블리처스) - 실수 좀 할게(Will Make a Mistake) Official MV

Worthwhile - Unlovable - 9.1.17 - The Farewell Show

Worthwhile - Unlovable - 9.1.17 - The Farewell Show

Fumaratto x Happy Face - Delicious 🍭 | Guaracha

Fumaratto x Happy Face - Delicious 🍭 | Guaracha

Off Form Man

Off Form Man

Anneke van Giersbergen & Alides Hidding - What kind of fool | Beste Zangers 2021

Anneke van Giersbergen & Alides Hidding - What kind of fool | Beste Zangers 2021

This IBM Personal Computer held quite a few SURPRISES for me!

This IBM Personal Computer held quite a few SURPRISES for me!

Brawl Stars: Brawl Talk - FREE New Brawler!? CLUB LEAGUE and MORE! - Concept Edit

Brawl Stars: Brawl Talk - FREE New Brawler!? CLUB LEAGUE and MORE! - Concept Edit

robcdee September top clips!

robcdee September top clips!

Shiva - Mastercard feat. Lil Baby (Audio)

Shiva - Mastercard feat. Lil Baby (Audio)