* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
9 lines
776 B
Markdown
9 lines
776 B
Markdown
# Conditionals
|
|
|
|
Conditionals execute different code paths based on whether a condition is true. Python uses `if`, `elif`, and `else` for this. Python 3.10 introduced `match/case`, a structural pattern matching statement that cleanly handles multiple specific value checks as an alternative to long `elif` chains. They appear in custom functions applied to DataFrames, in filtering logic, and in branching pipeline code.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Conditional Statements in Python](https://realpython.com/python-conditional-statements/)
|
|
- [@article@Python Switch Statement 101: Match-case and alternatives](https://roadmap.sh/python/switch)
|
|
- [@video@Control Flow in Python - If Elif Else Statements](https://www.youtube.com/watch?v=Zp5MuPOtsSY) |