Skip to content

← Code

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.

Start the course

Lessons in this course

  1. history A short history of Python
  2. usage What Python is used for
  3. resources Where to learn more
  4. setup Set up your computer
  5. 01 Your first program
  6. 02 Variables
  7. 03 Numbers & operators
  8. 04 Getting input
  9. 05 Working with strings
  10. 06 Making decisions
  11. 07 Counting loops
  12. 08 While loops
  13. 09 Lists (1-D arrays)
  14. 10 Functions
  15. 11 Scope & arguments
  16. 12 Dictionaries (records)
  17. 13 Planning & pseudocode
  18. 14 Errors & testing
  19. 15 Putting it all together

Language reference

/know/reference/python

Log in or create account

IGCSE, A-Level & AP