Home › Learn by Playing › Skills › Python
Learn Python free, step by step
From your first line of code to classes, testing and pandas.
28 units · 251 cards · Basic → Intermediate → Advanced · free, no login
How it works
- Short cards like Instagram reels: read, answer, see why.
- Strict order: each unit builds on the one before.
- Quizzes, code puzzles and game breaks keep it fun.
- Missed cards come back for review. A daily goal of 6 cards builds a streak.
- Finish a level, then take a 10-question challenge for a self-check badge (not an official certificate).
- Works on any phone, even offline after the first visit.
Try a few cards
💡 Learn
Variables hold values
A variable is a name for a value. = stores the value on the right in the name on the left, and print() shows values on screen. Names are case-sensitive: name and Name are different.
Try it
Which is a valid Python variable name?
- 2total
- total marks
- total-marks
- total_marks
Show the answer
✓ total_marks. Names can use letters, digits and _, but cannot start with a digit or contain spaces. - would mean minus.
Try it
What does print("5 + 3") show?
- "5 + 3"
- 5 + 3
- 53
- 8
Show the answer
✓ 5 + 3. Inside quotes it is text, so Python prints it exactly as written, without the quotes. print(5 + 3) would show 8.
Full syllabus
Basic · 10 units
- Print and variables
- Numbers and maths
- Strings
- Input and type conversion
- if / elif / else
- Lists
- for loops and range
- while loops
- Functions
- Dictionaries
Intermediate · 10 units
- Tuples and sets
- String methods and f-strings
- Errors and try/except
- Files (with open)
- Modules and pip
- List comprehensions
- Default args, *args, **kwargs
- Classes and objects
- Virtual environments
- JSON and CSV
Advanced · 8 units
- Iterators and generators
- Decorators
- Context managers
- Type hints
- Testing with pytest
- Async basics
- pandas for data
- Project structure and packaging
Kramavriddhi Learn is free and independent. Facts are checked against the official documentation. Badges are self-checks, not official certificates. Found a mistake or have an idea? Tell us.