Python tutorial for beginners: the complete learning path
31 lessons in the order to learn them, from your first line of code to Django, AI and databases. Follow the path, or jump to the topic you need.
1. Learn in order
Each level builds on the one before it, so start at Level 1 even if some of it looks familiar.
2. Practice as you go
Type the examples yourself, then test yourself with the Python quizzes.
3. Build something
Turn lessons into a finished program with the 100 Python projects list.
Advertisement
The learning path
Lessons are numbered in the order to read them.
Level 1: Python basics
6 lessonsInstall nothing fancy yet: learn how Python runs and how to store data.
- Introduction to PythonWhat Python is and where it is used.
- Python Interactive ModeTry code instantly for quick tests and commands.
- Python Script ModeWrite and run Python scripts from files.
- Variables in PythonStore and manage data with variables.
- Data Types in PythonNumbers, strings and booleans.
- Python Introduction QuizCheck what you have learned so far.
Level 2: Data structures
5 lessonsCollections you will use in almost every program.
Level 3: Functions
3 lessonsReuse your logic instead of repeating it.
Level 4: Object-oriented Python
4 lessonsOrganise larger programs with classes.
Level 5: Real-world skills
7 lessonsThe tools you need to write useful programs.
- Modules in PythonImport and organise code across files.
- File HandlingRead and write files.
- Exception HandlingHandle runtime errors gracefully.
- Working with JSONUse JSON data with Python dictionaries.
- Regular ExpressionsPattern matching and string searching.
- Regex PracticeExercises to test your regex skills.
- Python APIsCall web APIs with real examples.
Level 6: Build and go further
6 lessonsApply what you know to apps, the web, data and AI.
- Python Projects for PracticeBuild projects with what you have learned.
- Python GUI with TkinterCreate your own desktop applications.
- Django TutorialBuild web apps with Django.
- Artificial IntelligenceGet started with AI using Python.
- Introduction to DatabasesLearn databases and use them from Python.
- Introduction to MongoDBLearn NoSQL and use MongoDB with Python.
Keep going
Advertisement