Learn how Python stores and labels data — variables and naming rules, literals, and the core built-in types int, float, bool, str, complex and None. You will use type(), id() and f-strings, read numeric bases, and meet dynamic typing and simple conversion. Aligned to the Python Institute PCEP certification.
Watch the free preview
Variables and naming rules — free to watch, no account needed.
What you'll learn
- Apply Python naming rules to create valid, readable variables
- Identify the core built-in types int, float, bool, str, complex and None
- Use type() and id() to inspect an object's type and identity
- Format output with f-strings and read integer, binary and hex literals
- Explain dynamic typing and perform simple type conversions
Syllabus
Variables, Names & Literals
Variables and naming rulesFree preview
Literals and the core built-in types
Numbers, Booleans & None
Integers, floats and complex numbers
Booleans, None and truthiness
Strings & f-strings
Strings and text literals
Formatting with f-strings
Dynamic Typing & Conversion
Dynamic typing, type() and id()
Numeric bases and type conversion
Lab — 10 Programming Exercises & Solutions
Programming Exercises 1–5
Programming Exercises 6–10