Python Workbook (Teacher's Notes) : Sequence Selection
Python Workbook (Teacher's Notes) : Sequence Selection
Python Workbook (Teacher's Notes) : Sequence Selection
These are intended to be a skeleton set of work sessions, where the programming “keys to the kingdom” are
introduced. These are, as Dijkstra (sort of) put it:
Sequence Selection
Entry Entry
Entry Entry
?
Action
Action
Exit Exit
Exit Exit
Entry
Entry
Entry Entry
? Action Action
Action Action
Action Action
?
Exit Exit
Exit
Exit
Following are the sessions, which I’ve put together and with which I torment the little ones.. They mix a bit of
text-based programming with simple turtle graphics to break things up; having the main point of developing
the classical IPO pattern of programming.
One day I’ll get around to building this into a work that includes file handling and object-oriented stuff.
Note: The sessions are just a starting point. I’ve found they are handy foundations and lend themselves
to diving into more in-depth work.
Session 01 - Simple Output
Objective: To get students to interact with Python, to produce programs producing basic output, and to
understand basic syntax.
Commentary: There’s a lot going on here. Students should get used to programming in a “two part” sense; building a
program and running the program. The shell is where they see the output of their program. The script
window, where they enter in their statements and save their program.
At this point, the fact that statements can be entered directly into the shell, rather than being solely the
preserve of the main script (program) is ignored. It’s perhaps better left to be introduced as a
debugging tool when working with more complex programs than at the start.
Students WILL make typing/syntax errors. Getting used to the fact that syntax errors will prevent a
program from running is essential.
Design of a program is also explicitly left out at this stage. At this stage there is little if any need for
design thinking. Design is a need when a “certain level” of complexity in a program has been reached.