Skip to content

Python Basics

Your first Python programs: messages, questions, decisions, chance and loops.

This is the first module. You don't need to know any Python yet. Every lesson uses Console projects, which write words and ask questions.

  1. Hello, Python!: print messages, and make a name badge out of text.
  2. Silly stories: ask questions, and use the answers in a silly story.
  3. Quiz time: make decisions with if, and keep score in a quiz.
  4. Fortune teller: let the computer choose at random, and tell fortunes.
  5. Guess the number: repeat things with a while loop, in a guessing game.
  6. Rock, paper, scissors: put it all together in a game against the computer.

When you have finished, carry on with Python Toolkit.