Q3 today! As usual, it's up 5 min prior to the start of class so you can begin work right away.
Some New Tidbits
Assignment Trickery
Docstrings
math
Conditional Logic
Last time you met the simple if
Today you will meet two new boss statements,
else
and elif
.
Simple if
This allows us
to selectively hop across code.
Simple if
with else
This allows us to have something happen if an if
skips
code.
elif
This implements multiway
conditional logic.
The Python Ternary Opearator
A Reason to Upgrade to Python 3.10
The match
statement