CodeCubGet the app
🐍

Python Basics

Your first real Python · 9 lessons

Start from zero: print output, store values in variables, do math, join strings, and format text with f-strings. The foundation everything else builds on.

Practice this track with instant, on-device checks in CodeCub.

Get the app

Lessons in this track

  1. 1Printing output
  2. 2Comments
  3. 3Variables
  4. 4Numbers & math
  5. 5Strings & joining
  6. 6Booleans
  7. 7Type conversion
  8. 8Modulo %
  9. 9f-strings

How you'll be checked

Each lesson pairs a short explanation with 2–3 exercises, graded deterministically on your device:

🔮 Predict the output

Read a snippet and say exactly what it prints — the fastest way to build a mental model of how Python runs.

✏️ Fill the blank

Complete the missing token so the code does what the prompt asks. No syntax hand-holding.

🔢 Order the lines

Drag shuffled lines back into the sequence that produces the right result.

✅ Pick the answer

Choose the correct statement about behaviour, output or a concept.

Next track →

🔤 Strings

Learn Python — free app

Learn Python that sticks

54 tiny lessons with CodeCub

Get the app