Python Lessons from Scratch / #5 - Conditional Statements

Опубликовано: 15 Март 2024
на канале: Cpp Explorer
134
7

Conditional constructs provide the ability to check a condition and execute a particular section of code depending on the result. In this lesson, we will learn to use if-else statements, as well as the ternary operator in the Python language.

⏰ Time Codes:
00:00 - Introduction
00:11 - What are conditional constructs?
00:27 - Creating a simple condition
01:58 - User input validation
03:03 - Check formats
03:39 - Nested conditions
04:13 - Boolean variable check
05:17 - The "else" statement
06:26 - The "elif" statement
07:37 - Ternary operator
08:41 - Conclusion

✅ My Socials
TikTok:   / cppexplorer  
Telegram: https://t.me/cppexplorer

✅ Lessons from #cppExplorer 👨🏼‍💻

💵 If you wish, you can support me:
https://www.paypal.com/paypalme/puzyryn


На этой странице сайта вы можете посмотреть видео онлайн Python Lessons from Scratch / #5 - Conditional Statements длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Cpp Explorer 15 Март 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 134 раз и оно понравилось 7 зрителям. Приятного просмотра!