There are three main building blocks that all computer programs consist of: sequence, selection and iteration. This activity is designed to help you understand and use selection in python programs.
Selection means making a choice. You will select different choices hundreds of times every day:
What shall I select to eat for breakfast?
Which selection of clothes shall I wear?
Which people with I select to speak to today (and who will I try to ignore!)examples of selection in everyday life.
Most programs need to be able to make choices too. You can write code that makes choices by using selection.
Page 1: Intro
Page 2: The theory: learn what you need to know as fast as possible.
Page 3: Try it: try out and adapt some working python code snippets.
Page 4: Debug it: Learn how to find and fix common mistakes.
Page 5: Extend it: Choose a project idea to use your newfound python skills.