18 Цикл while Python

Share this & earn $10
egoroff_channel
Published at : 24 Nov 2021
115685 views
3327
46

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

Concrete mix ratio - Various grades of concrete - Concrete mix design

Concrete mix ratio - Various grades of concrete - Concrete mix design

I Bought the Weirdest Keyboard Ever

I Bought the Weirdest Keyboard Ever

The DC Check-In With Colby Covington

The DC Check-In With Colby Covington

Adoption is Trendy? the TRUTH about Pets, Are we tired of Vlogging? Why the wait matters...

Adoption is Trendy? the TRUTH about Pets, Are we tired of Vlogging? Why the wait matters...

New Ideas for Packing the LYMIA BRAND Nylon Sophie

New Ideas for Packing the LYMIA BRAND Nylon Sophie

Clothes and accessories vocabulary/English vocabulary for kids and beginners

Clothes and accessories vocabulary/English vocabulary for kids and beginners

This needs to stop...

This needs to stop...

Flavour - Levels (Official Video)

Flavour - Levels (Official Video)

Lauren Jauregui - Expectations (Official Video)

Lauren Jauregui - Expectations (Official Video)

ESTABLISHING SHOTS: Why they are important and how to film them!

ESTABLISHING SHOTS: Why they are important and how to film them!

Because of this Tusk raid was wiped

Because of this Tusk raid was wiped

Stripes & Skinnies - The Guidelines - Live

Stripes & Skinnies - The Guidelines - Live

Let's Do Away With Computers

Let's Do Away With Computers

Carpenters - Close To You (lyric video)

Carpenters - Close To You (lyric video)

Was LOST even a good show?

Was LOST even a good show?

YOUNG FATHERS // IN MY VIEW (LYRICS)

YOUNG FATHERS // IN MY VIEW (LYRICS)

RED DEAD REDEMPTION II #77 : Black and White

RED DEAD REDEMPTION II #77 : Black and White

Minecraft: BAŞARIM SURVIVAL  (1.16.5) Bölüm 15 (Final)

Minecraft: BAŞARIM SURVIVAL (1.16.5) Bölüm 15 (Final)

Backstreet Boys - Show Me The Meaning Of Being Lonely

Backstreet Boys - Show Me The Meaning Of Being Lonely

Vacationer - Good as New

Vacationer - Good as New

Payroll Giovanni - Previously (Official Video) Shot by @JerryPHD

Payroll Giovanni - Previously (Official Video) Shot by @JerryPHD

Khadijah is "Living Single" with 2 Kids And It's Men's Fault

Khadijah is "Living Single" with 2 Kids And It's Men's Fault

How to make your own Wood Beam LED Fixture (Chain suspended wooden light)

How to make your own Wood Beam LED Fixture (Chain suspended wooden light)

how to install pedestal lavatory

how to install pedestal lavatory

America's Cheapest Family! | Extreme Cheapskates

America's Cheapest Family! | Extreme Cheapskates

Bolier - Sweet Love (Calling Out Your Name) [Official Music Video]

Bolier - Sweet Love (Calling Out Your Name) [Official Music Video]

Allergists Debunk 11 Food Allergy Myths | Debunked

Allergists Debunk 11 Food Allergy Myths | Debunked

Don Moen - I Offer My Life | Praise & Worship Music

Don Moen - I Offer My Life | Praise & Worship Music

TUOMAS HOLOPAINEN - A Lifetime of Adventure (OFFICIAL VIDEO)

TUOMAS HOLOPAINEN - A Lifetime of Adventure (OFFICIAL VIDEO)

A EUROPEAN or AN EUROPEAN?

A EUROPEAN or AN EUROPEAN?

Substantive Nouns - Free English Grammar Lesson B2 (Upper Intermediate)

Substantive Nouns - Free English Grammar Lesson B2 (Upper Intermediate)

Nick Jonas - Close ft. Tove Lo

Nick Jonas - Close ft. Tove Lo

GET UP | Ryan Clark HEATED Expectations for Raiders following Jon Gruden's resignation?

GET UP | Ryan Clark HEATED Expectations for Raiders following Jon Gruden's resignation?

3 LEVELS of Cabinets -DIY to PRO Build

3 LEVELS of Cabinets -DIY to PRO Build

🎃 Especial Halloween - Slenderman FINAL Wakeful 💜

🎃 Especial Halloween - Slenderman FINAL Wakeful 💜

50 COMMON ENGLISH PHRASES

50 COMMON ENGLISH PHRASES

如何不把usually念成【优若粒】|发音练习之【usual & usually】|How to pronounce usual+usually

如何不把usually念成【优若粒】|发音练习之【usual & usually】|How to pronounce usual+usually

Imagine Dragons - Zero (From the Original Motion Picture "Ralph Breaks The Internet")

Imagine Dragons - Zero (From the Original Motion Picture "Ralph Breaks The Internet")

Glenn Medeiros - Long & Lasting Love (Official Music Video)

Glenn Medeiros - Long & Lasting Love (Official Music Video)

Young Thug - Recognize Real (with Gunna) [Official Audio]

Young Thug - Recognize Real (with Gunna) [Official Audio]

Billy Ocean - Suddenly (Official HD Video)

Billy Ocean - Suddenly (Official HD Video)

Specialise in Clinical Quality and Safety to lead the world of healthcare

Specialise in Clinical Quality and Safety to lead the world of healthcare

Icelandic standup about Nordic neighbours in general and Finnish language in particular

Icelandic standup about Nordic neighbours in general and Finnish language in particular

Blossoms - Charlemagne

Blossoms - Charlemagne

Acceptance and Mental Health

Acceptance and Mental Health

Olivia Rodrigo - good 4 u (Official Video)

Olivia Rodrigo - good 4 u (Official Video)

SISTAR19 씨스타19  - 있다 없으니까(GONE NOT AROUND ANY LONGER) MUSIC VIDEO

SISTAR19 씨스타19 - 있다 없으니까(GONE NOT AROUND ANY LONGER) MUSIC VIDEO

How to Pronounce Particular and Particularly

How to Pronounce Particular and Particularly

Natural Remedies for Pain and Inflammation

Natural Remedies for Pain and Inflammation