RANIARANIA Academy

Python Syntax, Variables & Data Types

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.

Python: Foundations BEGINNER · 150 min · Certificate on completion · 3 CPD points

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 preview15 min
Literals and the core built-in types15 min
Numbers, Booleans & None
Integers, floats and complex numbers15 min
Booleans, None and truthiness15 min
Strings & f-strings
Strings and text literals15 min
Formatting with f-strings15 min
Dynamic Typing & Conversion
Dynamic typing, type() and id()15 min
Numeric bases and type conversion15 min
Lab — 10 Programming Exercises & Solutions
Programming Exercises 1–515 min
Programming Exercises 6–1015 min