Basic Data Types
Python values have a type: int (whole number), float (decimal), str (text), or bool (True/False)
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 journey and assign it to your class.
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
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →