A5PythonBeginnerAbout 95 min to complete
Operators
Fluent, unambiguous expressions — and the & vs and rule that governs every pandas filter you will ever write.
Notebook
About 95 minutes to complete
Enrol to read the notebook and download it to run.
What this module covers
Fluent, unambiguous expressions — and the & vs and rule that governs every pandas filter you will ever write.
By the end of it
- Use all arithmetic operators, including floor division, modulo, and exponentiation
- Apply augmented assignment (+=, *=, …) and know when it mutates in place
- Compare values correctly, and exploit Python's chained comparisons (0 < x < 100)
- Combine conditions with and, or, not, and explain short-circuit evaluation
- Test membership with in / not in across strings, lists, dicts, and sets
- Distinguish identity (is) from equality (==) in operator contexts
- Use bitwise operators &, |, ~, ^ — and explain why pandas requires them
- Predict evaluation order from the precedence table, and know when to add parentheses anyway