The Most Addictive Python and SQL Courses
Learn AI, Data Science & Business — Earn Certificates That Get You Hired, 50% Off
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 50% Off
One plan covers every Professional Certificate on Coursera. 50% off Coursera Plus Annual for 10 days only — price increases June 17.
Unlock All Certificates
This conference talk from PyCon US explores lesser-known control flow mechanisms in Python beyond the familiar if-else statements. Discover how for-else and try-except-else blocks work and learn to leverage these obscure features to write cleaner, more maintainable code. Begin with fundamental control flow concepts before diving into how these alternative syntax elements can make common patterns more readable. Explore how Python handles complex mechanisms like generators and decorators to build higher-order functionality. The 23-minute presentation even ventures into creating custom control flow systems and implementing features like the "do-while" loop that many developers wish Python had natively. Join this adventure into the depths of Python's less-traveled grammatical structures and expand your programming toolkit.
Syllabus
Or Else! An Exploration of Obscure Control Flow
Taught by
PyCon US