Computer Science & AI · Foundation

Introduction to Programming with Python

Programming is the skill of giving precise instructions to a machine. This course teaches you the core ideas every programmer relies on, using Python, one of the most readable and widely used languages in the world. By the end you will be able to write small programs that store data, make decisions, repeat work, and organise themselves into reusable pieces. Every lesson also teaches you to read one more kind of error message, because a beginner meets their first one about ninety seconds in, and reading them is a skill rather than a talent.

What you'll learn

  • Run Python two ways, and read a traceback from the bottom up to find what stopped and why
  • Explain what = does in terms of names and values, and convert what input() gives you
  • Choose between branches with if, elif and else, and predict which one runs
  • Repeat work with for and while, and build an accumulator that totals and counts
  • Write functions with parameters and return values, and say what return gives that print does not
  • Use lists and dictionaries, and predict what happens when two names share one list

Syllabus

  1. 1Your first program, and your first error55 min
  2. 2Names and values60 min
  3. 3Making decisions60 min
  4. 4Repeating work65 min
  5. 5Functions85 min
  6. 6Lists and dictionaries95 min

Assessments

  1. TFinal testfinal test40 min
  2. PThe readings summariserproject2 h