Learn Python step by step, with examples you can run today
Free tutorials for beginners: from your first variable to projects, databases, Django and AI. Short lessons, real code, quizzes to check what you learned.
Follow the learning path
Not sure where to begin? Go in this order.
Python basics
Introduction to Python Variables Data typesData structures
Lists Tuples Sets DictionariesFunctions & OOP
Functions Classes and objects InheritanceReal-world skills
File handling Exception handling Modules JSONPractice & projects
Top 10 beginner projects Build a calculator Tkinter app to .exe
Test yourself with quizzes
20 questions each, with answers and explanations.
Math module quiz
Functions, constants and rounding.
NewDate and time quiz
The datetime module in practice.
Context managers quiz
The with statement, __enter__ and __exit__.
Decorators quiz
Wrapper functions and @ syntax.
Iterators and generators quiz
Lazy sequences and yield.
Explore by topic
Go beyond the basics when you are ready.
Popular tutorials
What other learners read most.
PyMongo tutorial
Connect Python to MongoDB, CRUD and aggregation.
Tkinter app to EXE
Package a Python GUI with PyInstaller.
Python script mode
Run your first script the right way.
All tutorials in order
The complete beginner course, from the first lesson onward.
- Introduction to Python
- Python Interactive Mode
- Python Script Mode
- Python Variables
- Python Data Types
- Python Lists
- Python Tuples
- Python Sets
- Python Iterators
- Python Dictionaries: Intro
- Python Dictionaries: Part 1
- Python Dictionaries: Part 2
- Python Dictionaries: Part 3
- Python Functions
- Python Functions: Part 1
- Creating a Simple Function
- Python Classes and Objects
- Python Polymorphism
- Python Inheritance
- Python JSON
- Top 10 Python Projects for Beginners
- Python Modules
- Python Exception Handling
- Python File Handling
- Python Lambda
- Calculator in Python (Application)
Never miss a new tutorial
Follow the feed and get new lessons and quizzes as they are published.