Let's talk about short-circuiting in Python with Python's boolean operators.
ifstatements to chain conditions
Here we have an
if statement that checks whether the first item in a given list is the word
This is a premium screencast available only to active Python Morsels subscribers.
Feel free to watch some of the free screencasts in the Conditionals series.
Intro to Python courses often skip over some fundamental Python concepts.
Sign up below and I'll share ideas new Pythonistas often overlook.