Overview Version History Q & A Rating & Review
Python Teacher
Learn Python interactively right inside VS Code. Step-by-step lessons with explanations, code examples, and practice exercises — all in your editor.
Features
17 Interactive Lessons — Variables, Data Types, Control Flow, Data Structures, Functions, OOP, File I/O, and more
Teaching Pages — Each lesson opens a full page with explanations and code examples, not just a bare exercise
Practice Exercises — 2-3 extra problems per lesson with automated validation and scoring
Bilingual — English and Persian (فارسی) with full RTL support, switchable from the sidebar
Progress Tracking — Completion and scores persist across sessions
Sequential Unlocking — Lessons unlock in order as you complete them
Instant Feedback — Validate your code and get a score from 0 to 100
How to Use
Open the Python Teacher sidebar (or press Ctrl+Alt+L / Cmd+Alt+L)
Click any unlocked lesson to read the teaching content with examples
Click Start Practice on any exercise to open it in the editor
Write your solution and click the Validate button in the status bar
Score 100 to complete the lesson and unlock the next one
Lessons
Category
Lessons
Basics
Variables, Data Types, Type Casting, Operators
Control Flow
If Statements, Loops
Data Structures
Strings, Lists, Tuples, Sets, Dictionaries
Functions
Functions, List Comprehensions
Advanced
Error Handling, File I/O, OOP, Modules
Configuration
Setting
Default
Description
pythonteacher.language
en
Interface language (en or fa)
pythonteacher.timeoutMs
10000
Code execution timeout in ms
Requirements
VS Code 1.94.0+
Python 3.x in PATH
Support
If you find this extension helpful, please give it a star on the marketplace — it helps others discover it and keeps the project going.