Workshop 1: Welcome to computing

Your first steps in Python: printing to the screen, escape sequences, data types, variables, and taking input from a user.

  • 14 lessons
  • 4 parts
  • No prerequisites. Start here if you're brand new to coding.

Your lessons, in order

Work from top to bottom. Lessons teach a new idea, then practice and challenges let you use it. Tick "Done" as you finish each one.

Part 1 Getting started

Part 2 Printing

Part 3 Types

Part 4 Variables and input

Answer keys

Try each exercise on your own first. Keys open in Google Colab, which needs a Google account.

4.1 and 5.2 don't have separate keys. They check themselves: run the cell and the output tells you if you got it right.

Up next: Workshop 2

Conditionals and loops: comparison operators, if, elif and else branching, while loops, and for loops.

Go to Workshop 2