Day 1 of 14

Python fundamentals

Variables, types, arithmetic, and your first if/else. The building blocks for everything.

60–75 min 22 steps Final test at the end

What you'll learn today

  • 1Create variables and understand Python's core types — int, float, str, bool
  • 2Use arithmetic, comparison, and boolean operators confidently
  • 3Write if/elif/else branches and read logical expressions
  • 4Convert between types (int(), str(), float()) without surprises
  • 5Read error messages and fix simple bugs
By end of today

A handful of tiny programs and two LeetCode-style problems that use only what you learn today.

Tip — this is an active lesson. The teacher will ask you to type code, answer questions, and explain concepts in your own words. That struggle is what makes it stick. You can pause anytime and resume later — your progress is saved in your browser.

Loading Python runtime...
Downloading Pyodide (~6MB). First load only.
Failed to load Python