Programming and Algorithms: Week 2



What are we doing this week?

This week we are going to look at how to design software using TOP-DOWN DESIGN, as well as looking at the notion of SEQUENCE and explaining what a VARIABLE is.
Moving onto the Python side of things we will look at how to print out messages to the screen, we'll look at basic MATHS functions, and how to implement 
VARIABLES in Python,

PseudoCode Python Python Logo

Top Down Design

Powerpoint: Sequence

Powerpoint: Variables

Powerpoint:Print, Maths & Variables

Powerpoint: Some Common Issues

Printing to the screen

Simple Mathematics


Total running time of videos is 60 minutes.

Sample Code:
HelloWorldProgram * HelloWorldProgramNewLine * HelloWorldProgramTwoLines * HelloWorldProgramJoinedHelloWorldProgram10Times * HelloWorldProgramNewLine10Times * AddingNumbers * AddingNumbersFancy * SubtractingNumbers * MultiplyingNumbers * RegularDivision * IntegerDivision * DivisionRemainder * DivisionProblem * VariableAssignment * VariablePrint * AddOneVariablePrintTwoVariablePrint * RealVariablePrint * AnotherRealVariablePrint * CharacterVariablePrint * AnotherCharacterVariablePrint * ErrorProgram * StringVariablePrint * PrintMessage * ConvertFromCelsiusToFahrenheit

TED logo
Let's teach kids to code - Mitch Resnick 

"Hello World" in Python and 318 other programming languages

Python Programming Examples

Python Wik: Simple Programs

Lab #2
Lab #2 is all about checking if what you have learned in the episodes above all makes sense, and if you can print messages to the screen, do maths, and create variables.

Reminder: Running Python Programs


If you have any suggestions, corrections, or comments, please feel free to e-mail me at: