Basic Data Types
Python values have a type: int (whole number), float (decimal), str (text), or bool (True/False)
Understanding Basic Data Types in Python
What it does: Numbers with a decimal point are floats in Python. Text wrapped in quotes is a string (str) in Python. A whole number without quotes is an integer. 42 has no decimal point — it's an integer. Any value in quotes is a string — floats are numbers like 3.14. Even 0.0 is a float — it has a decimal point. The quotes make it a string — quotes override the decimal point. '25' is a string — you can't do maths with it directly. Use int('25') first.
Common mistakes: Line 2 has a stray quote. Should be: age = 15. Line 2 is missing quotes. Should be: city = "Melbourne".
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 1–10) and word search (Modules 1–20).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
"Alice"?15?5.5?42?Match the Pairs
Key Term
name = "Alice"Fill in the Blanks
Spot the Error
Student with a class code? Join your class →