There are three main building blocks that all computer programs consist of: sequence, selection and iteration. This activity is designed to help you design and code your own sequences with python.
The colour of traffic lights follow a sequence that’s carefully planned. If the wrong lights show at the wrong time then you’ll probably agree that bad things will happen.
It’s just the same with lines of code: sometimes the order in which your lines of code run is really important. Sequence means running instructions in a set order to do what the program needs to do.
This activity gets you thinking about the order your instructions so that you can avoid common mistakes when writing python programs.
Contents:
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.
Trackbacks/Pingbacks