#5: Python for..else & while...else | Python Best Practices

Опубликовано: 31 Март 2021
на канале: Programiz
9,154
285

Step by step video tutorials to learn Python for absolute beginners!

We have learned about for & while loops in Python and used them frequently in our programs, but did you know that they can also have an optional else clause?

In this video, we will learn to use the else clause in for and while loop with the help of examples. We will also understand how they can be used to write more Pythonic code.

~
Run Python Online: https://www.programiz.com/python-prog...
Programs in this video: https://github.com/programiz/python-b...

Python for...else (text-based tutorial): https://www.programiz.com/python-prog...
Python while...else (text-based tutorial): https://www.programiz.com/python-prog...

Watch our videos and revise them with our Python App!
Download here for Android: https://bit.ly/learn-python-android
Download here for iOS: https://apple.co/3iPm6Sx

Timestamps:
0:00 Intro
0:23 Python for...else
5:04 Python while...else

Find Programiz elsewhere:
Facebook:   / programiz  
Instagram:   / _programiz  
LinkedIn:   / programiz  
Website: https://www.programiz.com

#python #learnprogramming #programiz #pythonbestpractices #pythonforelse


На этой странице сайта вы можете посмотреть видео онлайн #5: Python for..else & while...else | Python Best Practices длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Programiz 31 Март 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 9,154 раз и оно понравилось 285 зрителям. Приятного просмотра!