How to use If, Else and Ternary in Python | Python Course #7

Опубликовано: 26 Ноябрь 2021
на канале: k0nze
416
15

This video shows you how to add dynamic control flow to your Python programs using if, else, and elif statements for complete beginners. Additionally, you will learn how to use the Python comparison operations and couple them with Boolean algebra. Finally, you will see how to use the Python ternary operator.

⏬ Get my FREE Python Cheat Sheets: https://k0nze.gumroad.com
👉 Website Article for this Video: https://k0nze.dev/posts/python-if-else/

💌 Support me on Patreon:   / k0nze  
☕️ Buy me Coffee: https://www.buymeacoffee.com/k0nze
🌍 Check out my Website: https://k0nze.dev
💻 Join our Discord: https://discord.k0nze.dev
👔 Follow me on LinkedIn: https://linkedin.k0nze.dev

Recording Gear
Camera - Sony A6400: https://geni.us/zRw1
Lens - Viltrox AF 23mm f1.4: https://geni.us/RVrguGd
Microphone - Rode Wireless Go: https://geni.us/RBAOIx
Keyboard - Keychron K2 v2: https://geni.us/DPK87Xn

⏰ Timestamps:
0:00 Intro
0:17 Static vs. Dynamic Program Flow
2:16 if else in Python
3:35 Python Comparison Operators
5:56 Python String Comparison
7:23 Comparison with Boolean Algebra
9:29 if without else
11:04 Python else if / elif
12:56 Chaining if elif else in Python
14:09 Python Short-circuit Evaluation
16:04 Python Ternary Operator
18:29 Summary
18:46 Outro


Смотрите видео How to use If, Else and Ternary in Python | Python Course #7 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь k0nze 26 Ноябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 416 раз и оно понравилось 15 людям.