Minu's Games logo
MINU'S ROBOTICS

A Minu's Games EdTech Lab

← Code & Cognition
Day 4 of 30Python Foundations

➗Numbers & Math

🎯 Today's objective

Do arithmetic and understand the math AI is built on.

📖 Key concepts

  • Operators: + - * / // % **
  • / gives float, // floor-divides
  • % is remainder
  • Order of operations (BODMAS)

💻 Try this code

print(7 / 2)    # 3.5
print(7 // 2)   # 3
print(7 % 2)    # 1 (remainder)
print(2 ** 10)  # 1024
print((3 + 4) * 2)

👥 Learn it your way

🧒 Young Explorers

Python is a super-calculator. Try predicting each answer before you run it.

Your task

Compute the area of a rectangle (w × h) and the average of three test scores.

💼 Professionals

Beware integer vs float division and floating-point rounding in real pipelines.

Your task

Write a tip calculator: bill + tip% → per-person amount for N people, rounded to 2 decimals.

🤖 AI connection

Under the hood, AI is a LOT of arithmetic — multiplying and adding millions of numbers (matrix math). Today’s operators are the atoms of that.

✅ Quick check

What is 10 % 3?

1 (the remainder).

What does ** do?

Exponentiation (power).