python8

= Python - Lesson 8 = Lesson 1 Lesson 2 Lesson 3 Lesson 4 Lesson 5 Lesson 6 Lesson 7 Lesson 8 ==

==

Lesson Objectives

 * Annotate a python program
 * Code a python Game
 * Understand the difference between working in the IDLE interface and the shell

Success Criteria
(C-A*) Be able to describe a range of Python syntax (C-A*) Program a working game in Python (C-A*) Draw a series of shapes using the Python Turtle

**Starter (10 mins)**
Annotate the program below to show….

4 sections > > > >
 * Game end
 * Main Loop
 * Game set-up
 * Branching part

Messages displayed to user Integer score set (variable) random number score increase

Homework
On Google Classroom - please check the homework - remember last weeks will be due!

Task (15mins)
Using the IDLE interface start a new file (which opens the code window) and code Ghost Gamethe program as shown above

Task (20 mins)
Return to the IDLE interface and porgram straight into the shell. There is a simple turtle program which can be used to draw directly. By coding in the shell each command is carried out immediately.

Try drawing > > >
 * a square
 * a pentagon
 * a hexagon

Could you add coding to repeat commands?



Plenary (5 mins) Discuss any problems you encountered today with Python