SlideShare a Scribd company logo
Year 8 python part 1 - debugging
WHAT DO THESE CODES DO?
OUTCOME 
Be able to create a working program by 
debugging and fixing coding errors and 
gaps. 
Be able to make effective use of comments 
in code to find problems 
Build on prior understanding of 
programming to complete algorithms.
FIND THE PROBLEMS WITH THE CODE 
Go to the following site and download and save the main task part 1 
program. 
You then need to edit this using Python IDLE. 
Level 4 Task - Red Find the errors in the code and 
attempt to fix them 
Level 5 Task - Amber Find and fix the errors adding 
comments to show what you 
have done 
Level 6 Task - Green Find and fix any errors 
commenting on the changes. 
Where possible refine and 
improve the program to make it 
more efficient
WHAT YOU FOUND SO FAR. 
Red I can identify mistakes 
in code and partly fix 
them 
Amber I can find a fix 
programs adding 
comments 
Green I can find a fix and 
refine programs 
adding comments
NOW FOR MORE DIFFICULT CODING 
Go to the following site and download and save the main 
task part 2 program. 
You then need to edit this using Python IDLE. 
Level 4 Task - Red Find the errors in the code and 
attempt to fix them 
Level 5 Task - Amber Find and fix the errors adding 
comments to show what you 
have done 
Level 6 Task - Green Find and fix any errors 
commenting on the changes. 
Where possible refine and 
improve the program to make it 
more efficient
WHAT HAVE YOU LEARNED 
In a word document write the answers with a short 
explanation to each of the following questions. 
1. Why are comments so important to 
programmers? 
2. What were the most common errors in the 
code?

More Related Content

PPTX
Prototyping with Expression SketchFlow (2 Fev 2010)
PDF
Introduction to webpack and babel
PPTX
FAKE (F# Make) & Automation
PPTX
Python - Lesson 4
PDF
Five steps towards your testing dream
PDF
Offshore tips sharing_2.0
PDF
Whats resources compat_contextcompat_and_appcompat
PDF
Ict question
Prototyping with Expression SketchFlow (2 Fev 2010)
Introduction to webpack and babel
FAKE (F# Make) & Automation
Python - Lesson 4
Five steps towards your testing dream
Offshore tips sharing_2.0
Whats resources compat_contextcompat_and_appcompat
Ict question

What's hot (19)

PPTX
Tdd like beethoven
PDF
TDD BDD PHP - Sviluppo guidato dai test in PHP con phpspec
PPTX
Why programming is important
PPTX
Coding Camp Day 1 Presentation
PPTX
Coding Camp Day 1
PPTX
Algorithm and flowchart
PPTX
PhillyXP Pair Programming
PDF
The principles of good programming
PPTX
apidays LIVE New York 2021 - Communication is just as Important as Code by M...
PDF
Compiler design error handling
PDF
React Apps at AirHelp. Lessons learned.
PDF
Design & Prototype an API
PPTX
Clean Code: Successive Refinement
PDF
Make it clean - scala clean code
PDF
Democratic Deploys at Airbnb
PPTX
Learn HTML5 & JEE7 by doing
PDF
Getting developers hooked on your api
PPTX
Open and Close Door ppt
PPTX
Building Web Apps with Python - Code Heroku
Tdd like beethoven
TDD BDD PHP - Sviluppo guidato dai test in PHP con phpspec
Why programming is important
Coding Camp Day 1 Presentation
Coding Camp Day 1
Algorithm and flowchart
PhillyXP Pair Programming
The principles of good programming
apidays LIVE New York 2021 - Communication is just as Important as Code by M...
Compiler design error handling
React Apps at AirHelp. Lessons learned.
Design & Prototype an API
Clean Code: Successive Refinement
Make it clean - scala clean code
Democratic Deploys at Airbnb
Learn HTML5 & JEE7 by doing
Getting developers hooked on your api
Open and Close Door ppt
Building Web Apps with Python - Code Heroku
Ad

Viewers also liked (17)

PPT
Scratch part 3 – creating a level
PPT
Scratch part 1 sprites
PPT
Game design part 5
PPT
Game design part 2
PPT
Game design part 12
PPT
Scratch character commands
PPT
Scratch character commands
PPT
Game design part 6
PPT
Game design part 9
PPT
Game design part 11
PPTX
Alice part 1 – getting started Update
PPTX
Plenary animation quiz
PPT
Scratch part 1 sprites
PPT
Game design part 4
PPT
Scratch part 1 sprites
PPTX
Photoshop tutorial 1 setting up the canvas
PPT
Game Maker Design part 1
Scratch part 3 – creating a level
Scratch part 1 sprites
Game design part 5
Game design part 2
Game design part 12
Scratch character commands
Scratch character commands
Game design part 6
Game design part 9
Game design part 11
Alice part 1 – getting started Update
Plenary animation quiz
Scratch part 1 sprites
Game design part 4
Scratch part 1 sprites
Photoshop tutorial 1 setting up the canvas
Game Maker Design part 1
Ad

Similar to Year 8 python part 1 - debugging (20)

PDF
Programming Project Part 6
PPTX
Introduction to computer programming
PPT
Lecture 1-3.ppt
PPTX
L20 Agile Principles
PPTX
1_2 Module 2 The Programming Process.pptx
PPTX
2 arts of assembly languge programming-converted.pptx
PPT
Software Development Life Cycle
PPTX
Best pratice
PPTX
Introduction to programming
PDF
Coding principles
PPTX
Ide description
PPTX
How have we developed product without bugs
PDF
Code tuning strategies
PPTX
Computer
PPTX
COMPUTER PROGRAMMING 10 WEEK 1.pptx
DOCX
Comso c++
PPTX
How to start developing iOS apps
PDF
Chapter-1-1 object oriented programing pdf.pdf
PDF
A Philosophy Of Software Design John Ousterhout
PDF
Preparing for the WebGeek DevCup
Programming Project Part 6
Introduction to computer programming
Lecture 1-3.ppt
L20 Agile Principles
1_2 Module 2 The Programming Process.pptx
2 arts of assembly languge programming-converted.pptx
Software Development Life Cycle
Best pratice
Introduction to programming
Coding principles
Ide description
How have we developed product without bugs
Code tuning strategies
Computer
COMPUTER PROGRAMMING 10 WEEK 1.pptx
Comso c++
How to start developing iOS apps
Chapter-1-1 object oriented programing pdf.pdf
A Philosophy Of Software Design John Ousterhout
Preparing for the WebGeek DevCup

More from Andrew Willetts (20)

PPTX
Photoshop tutorial 6 desaturisation
PPTX
Photoshop tutorial 5 clipping masks
PPTX
Photoshop tutorial 4 spot healing tool
PPTX
Photoshop tutorial 3 stamp tool
PPTX
Year 8 python part 1 - debugging
PPTX
Year 7 e-safety part 2
PPTX
Year 7 e-safety part 1
PPTX
Photoshop tutorial 2 rubber and quick select tools
PPTX
Programming Challenge
PPTX
Programming Variables
PPTX
Programming Adding Interupts
PPTX
Programming Hello World
PPTX
03 outputs
PPTX
PPTX
Computer Devices - What Are they?
PPTX
Data Flow Diagrams
PPTX
Databases dfd
PPT
Data flow diagrams
PPTX
Alice part 2 – background objects
PPTX
Alice part 3 – adding text
Photoshop tutorial 6 desaturisation
Photoshop tutorial 5 clipping masks
Photoshop tutorial 4 spot healing tool
Photoshop tutorial 3 stamp tool
Year 8 python part 1 - debugging
Year 7 e-safety part 2
Year 7 e-safety part 1
Photoshop tutorial 2 rubber and quick select tools
Programming Challenge
Programming Variables
Programming Adding Interupts
Programming Hello World
03 outputs
Computer Devices - What Are they?
Data Flow Diagrams
Databases dfd
Data flow diagrams
Alice part 2 – background objects
Alice part 3 – adding text

Recently uploaded (20)

PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Pharma ospi slides which help in ospi learning
PPTX
master seminar digital applications in india
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Institutional Correction lecture only . . .
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Cell Types and Its function , kingdom of life
PDF
RMMM.pdf make it easy to upload and study
GDM (1) (1).pptx small presentation for students
Microbial diseases, their pathogenesis and prophylaxis
Pharma ospi slides which help in ospi learning
master seminar digital applications in india
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Institutional Correction lecture only . . .
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
O5-L3 Freight Transport Ops (International) V1.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Final Presentation General Medicine 03-08-2024.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
O7-L3 Supply Chain Operations - ICLT Program
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Complications of Minimal Access Surgery at WLH
2.FourierTransform-ShortQuestionswithAnswers.pdf
Classroom Observation Tools for Teachers
Cell Types and Its function , kingdom of life
RMMM.pdf make it easy to upload and study

Year 8 python part 1 - debugging

  • 2. WHAT DO THESE CODES DO?
  • 3. OUTCOME Be able to create a working program by debugging and fixing coding errors and gaps. Be able to make effective use of comments in code to find problems Build on prior understanding of programming to complete algorithms.
  • 4. FIND THE PROBLEMS WITH THE CODE Go to the following site and download and save the main task part 1 program. You then need to edit this using Python IDLE. Level 4 Task - Red Find the errors in the code and attempt to fix them Level 5 Task - Amber Find and fix the errors adding comments to show what you have done Level 6 Task - Green Find and fix any errors commenting on the changes. Where possible refine and improve the program to make it more efficient
  • 5. WHAT YOU FOUND SO FAR. Red I can identify mistakes in code and partly fix them Amber I can find a fix programs adding comments Green I can find a fix and refine programs adding comments
  • 6. NOW FOR MORE DIFFICULT CODING Go to the following site and download and save the main task part 2 program. You then need to edit this using Python IDLE. Level 4 Task - Red Find the errors in the code and attempt to fix them Level 5 Task - Amber Find and fix the errors adding comments to show what you have done Level 6 Task - Green Find and fix any errors commenting on the changes. Where possible refine and improve the program to make it more efficient
  • 7. WHAT HAVE YOU LEARNED In a word document write the answers with a short explanation to each of the following questions. 1. Why are comments so important to programmers? 2. What were the most common errors in the code?