Minu's Games logo
MINU'S ROBOTICS

A Minu's Games EdTech Lab

← Code & Cognition
Day 2 of 30Python Foundations

📦Variables & Data Types

🎯 Today's objective

Store and reuse information using variables and basic types.

📖 Key concepts

  • A variable is a named box that stores a value
  • Types: int, float, str, bool
  • = assigns a value
  • type() reveals a value’s type

💻 Try this code

name = "Aarav"      # str
age = 14             # int
height = 1.62        # float
is_student = True    # bool
print(name, age, height, is_student)
print(type(age))

👥 Learn it your way

🧒 Young Explorers

Variables are labelled boxes — write a label, put something inside, use it later.

Your task

Create variables for your name, age, and city, then print "Hi, I am __, age __, from __".

💼 Professionals

Note Python is dynamically typed; values carry the type, not the variable.

Your task

Create variables for a product (name, price, in_stock), print them, and print each one’s type().

🤖 AI connection

AI models work on data. Numbers, text and booleans are exactly how real-world facts get represented before a model can learn from them.

✅ Quick check

Which type is 3.14?

float

How do you check a value’s type?

Use type(value).