Python Programming
In this Python programming lesson, students learn how to troubleshoot errors in their programs and enhance a maze game. They practice independent coding and collaboration, planning program features, using loops and if statements, and developing functions. By working in pairs, they identify and rectify errors, debug their maze game, and provide constructive feedback to peers. The lesson emphasizes problem-solving skills and creative programming approaches.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Python Programming January 2018 Lesson 1 of 10
Do Now Write down all the things that might cause errors in your program and what you can do to put it right some suggestions are given Problem My program does not run and gives error messages My program runs but does not do the right thing .. What might be the problem What I could do
Lesson objectives You should be able to develop a program using your own ideas independently (in pairs) You should be able to plan features that could be added to an existing program You should be able to troubleshoot when the program does not work quite as you planned You should be able to use for loops, while loops and if statements when you need them for the logic of your program
Plan how to develop the maze game 10 mins Working in pairs, write down how you will improve the maze game You may want to add more choices, another level, or some functions to add points. Use all your programming skills: - Loops to repeat until the user does what you want - If statements to make choices - Functions to make named pieces of code that you can use again
How to plan You can use a flowchart, a storyboard, or just make notes My plan Level 3 Level 1 Level 2
PR I M M Develop your maze game 25 mins Working in pairs, make improvements to the maze game Try to debug it yourselves look back at your earlier programs for models if you are stuck Edit your plan if you think you were too ambitious to start with
PR I M M Review 10 minutes Swap computers with another pair and ask them to test your maze game. Score the maze game as follows: Amazing Pretty good Room for improvement 2 2 6 6 4 4 Does it run without any errors? Has it been developed from the starter maze game? Is it clear how to use it and what do t do? Comments and Total score 6 4 2 Give your feedback to the pair you swapped with