Data Types
Python's four scalar and four collection types — int, float, str, bool, list, tuple, dict, set.
Language fundamentals — the things everything else builds on.
View all tagsPython's four scalar and four collection types — int, float, str, bool, list, tuple, dict, set.
Arithmetic operators, PEMDAS precedence, and five ways to structure the same answer.
Formatted string literals — format specs, alignment, padding, conversion flags, and debug mode.
input() always returns a string, and print() has three parameters worth knowing — sep, end, and the values themselves.
Every Python value carries its type. How to ask what that type is, and what happens when you convert between them.
What makes a Python identifier legal, the 35 reserved keywords, and the PEP 8 conventions on top.