Python Basics
Your very first steps in programming — no experience needed.
python 15 Lessons
Every lesson runs in your browser — write real code, press Run, and the tasks check themselves. Free, no account needed, with notes in English and Chinese.
Lessons in this course
- history A short history of Python
- usage What Python is used for
- resources Where to learn more
- setup Set up your computer
- 01 Your first program
- 02 Variables
- 03 Numbers & operators
- 04 Getting input
- 05 Working with strings
- 06 Making decisions
- 07 Counting loops
- 08 While loops
- 09 Lists (1-D arrays)
- 10 Functions
- 11 Scope & arguments
- 12 Dictionaries (records)
- 13 Planning & pseudocode
- 14 Errors & testing
- 15 Putting it all together