Free · No signup
Python Tutorial
Learn Python from the ground up. Every code example on every lesson is real and runnable — the output shown was captured from an actual execution on this site's own compiler, not typed by hand — and you can try each one yourself with one click.
- 1Introduction to Python
- 2Your First Python Program
- 3Variables and Data Types
- 4Numbers and Basic Math Operators
- 5Strings and String Methods
- 6Lists
- 7Tuples
- 8Dictionaries
- 9Sets
- 10Conditional Statements (if, elif, else)
- 11for Loops
- 12while Loops
- 13Functions
- 14Lambda Functions
- 15List Comprehensions
- 16Exception Handling (try/except)
- 17Classes and Objects
- 18Modules and the Standard Library
More lessons are added regularly. Want to practice outside the tutorial? Open the Python compiler. Prefer C? Read the C tutorial. Prefer Hindi? Hindi mein padhein. Prefer Urdu? Roman Urdu mein parhein. ¿Prefieres español? Leer en español. Prefere português? Ler em português.