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

Published: 26 November 2021
on channel: 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


Watch video How to use If, Else and Ternary in Python | Python Course #7 online without registration, duration hours minute second in high quality. This video was added by user k0nze 26 November 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 416 once and liked it 15 people.