Python lessons
28 lessons from basics to advanced topics.
Basics
π¦
Lesson 1
Python Variables
Store and reuse values with names
+50 XP
π¨οΈ
Lesson 2
Output with print()
Show results in the console
+40 XP
β¨οΈ
Lesson 3
Reading input()
Get data from the user
+50 XP
π
Lesson 4
If, elif, else
Make decisions in code
+60 XP
π
Lesson 5
For loops
Iterate over sequences
+60 XP
βΎοΈ
Lesson 6
While loops
Repeat while a condition holds
+60 XP
More Lessons
Dive deeper into Python with topics from strings and lists to classes, regex, and beyond.
π
Lesson 7
Python Syntax
Indentation, comments, and basic rules
+30 XP
π·οΈ
Lesson 8
Data Types
Strings, ints, floats, booleans, and more
+50 XP
π€
Lesson 9
Python Strings
Work with text data
+50 XP
π
Lesson 10
Python Lists
Ordered, changeable collections
+60 XP
π
Lesson 11
Python Tuples
Ordered, unchangeable collections
+40 XP
π―
Lesson 12
Python Sets
Unordered collections of unique items
+40 XP
π
Lesson 13
Python Dictionaries
Key-value pairs for structured data
+60 XP
βοΈ
Lesson 14
Python Functions
Reusable blocks of code with def
+70 XP
Ξ»
Lesson 15
Lambda Functions
Small anonymous functions
+40 XP
ποΈ
Lesson 16
Classes & Objects
Object-oriented programming basics
+80 XP
π§¬
Lesson 17
Inheritance
Extend classes with child classes
+60 XP
π‘οΈ
Lesson 18
Try / Except
Handle errors gracefully
+50 XP
β¨
Lesson 19
String Formatting
Format text with f-strings and .format()
+40 XP
π
Lesson 20
List Comprehension
Build lists in one line
+50 XP
π¦
Lesson 21
Python Modules
Import and use modules
+40 XP
π
Lesson 22
File Handling
Read and write files
+50 XP
π
Lesson 23
Variable Scope
Local vs global variables
+40 XP
π
Lesson 24
Iterators & Generators
Efficient looping with yield
+50 XP
π₯
Lesson 25
Python PIP
Install packages from PyPI
+30 XP
π’
Lesson 26
Math & Numbers
Arithmetic, math module, and operators
+40 XP
π
Lesson 27
Working with JSON
Parse and create JSON data
+40 XP
π
Lesson 28
Regular Expressions
Pattern matching with re
+50 XP
