Programming foundations

Stage 1 of 6 · 9 lessons · ~4 months

Your first language

Learn one language properly: variables, control flow, functions, the core collections and error handling. Python is the gentlest start and is used everywhere, from scripts to AI.

Start: Variables, types and input

Lessons· one lesson for each topic, in this order

  1. 1Variables, types and input
  2. 2Strings and f-strings
  3. 3Conditionals and loops
  4. 4Functions, parameters and scope
  5. 5Reading tracebacks and debugging
  6. 6Lists, dictionaries and sets
  7. 7References, mutability and copying
  8. 8Handling errors with exceptions
  9. 9Modules and reading files

Start with· follow one of these

Practise

  • Small exercises in your language track, with free feedback from a human mentor

Keep handy

  • The official tour: read the matching chapter after the course covers a topic

  • Quick syntax lookups and an online compiler for testing a snippet on a shared computer

Before moving on: Write a 150-line command-line program, such as a quiz or a budget tracker, that uses functions, lists, dictionaries, file reading and error handling, without following a tutorial.

Tauseef's advice
Pick one language and do not switch for three months: the second language takes weeks once the first one is solid. Type every example yourself, and spend more time writing small programs than watching lectures.

Mark this stage as not done?