
Finding problems and errors in Python is a lot different in comparison to Scratch. In this lesson, we cover some easy ways to find the problem with our programs and put them to the test briefly. Students will be using the IDLE editor in this lesson to create and modify Python programs.
Lessons 2.1-2.3
| Activity |
|---|
1. Warm up activity, go through a few different short scripts from the PowerPoint slides and get students to decide if they think the program will work as expected 2. Discussion with students around why they think we need debugging and why things don’t always work like we expect when programming 3. Students should go into small groups of around 2-3 where each group has access to a Marty 4. Students in the group should work together to work their way through the Python treasure hunt where they will have to debug some short scripts to get enough clues to work out a fact about Marty! |