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
PDF
Compiler design error handling
PPTX
apidays LIVE New York 2021 - Communication is just as Important as Code by M...
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
Compiler design error handling
apidays LIVE New York 2021 - Communication is just as Important as Code by M...
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
Game design part 8
PPT
Technology through the years
PPTX
PPT
Scratch part 4 moving around the maze
PPTX
Databases dfd
PPTX
Alice quick programming questions
PPT
How civilised were the egyptians v2
PPTX
Query tasks
PPTX
Filtering tasks
PPTX
Misconception questions lesson 1 plenary
PPTX
Photoshop tutorial 2 rubber and quick select tools
PPTX
Programming Variables
PPTX
Programming Hello World
PPTX
Photoshop tutorial 4 spot healing tool
PPTX
Photoshop tutorial 6 desaturisation
PPTX
Photoshop tutorial 3 stamp tool
PPT
Data flow diagrams
Game design part 8
Technology through the years
Scratch part 4 moving around the maze
Databases dfd
Alice quick programming questions
How civilised were the egyptians v2
Query tasks
Filtering tasks
Misconception questions lesson 1 plenary
Photoshop tutorial 2 rubber and quick select tools
Programming Variables
Programming Hello World
Photoshop tutorial 4 spot healing tool
Photoshop tutorial 6 desaturisation
Photoshop tutorial 3 stamp tool
Data flow diagrams
Ad

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

PPTX
Cs2 Ch1
PPTX
Hello World - Introduction to coding.pptx
PDF
Programming And Scientific Computing In Python 60 Jm Hoekstra
PDF
Python Programming Hans-petter Halvorsen.pdf
PDF
Solution Manual for Python for Everyone 2nd Edition Horstmann
DOCX
ISTA 130 Lab 21 Turtle ReviewHere are all of the turt.docx
PPTX
Python programming - Everyday(ish) Examples
PPTX
Python Workshop - Learn Python the Hard Way
PPTX
Teach The Nation To Code.pptx
PPT
Introduction to Python Language and Data Types
PPTX
Teaching Deck_Coding Algorithms_V2.3.pptx
PPTX
Teaching Deck_Coding Algorithms_V2.3.pptx
PDF
Solution Manual for Python for Everyone 2nd Edition Horstmann
PDF
Solution Manual for Python for Everyone 2nd Edition Horstmann
PDF
Python for Physical Science.pdf
PDF
pyton Notes9
PDF
Data Structure and Algorithms (DSA) with Python
PDF
cos 102 - getting into programming with python.pdf
PDF
The Python Workshop.pdf
PPTX
Austin Python Learners Meetup - Everything you need to know about programming...
Cs2 Ch1
Hello World - Introduction to coding.pptx
Programming And Scientific Computing In Python 60 Jm Hoekstra
Python Programming Hans-petter Halvorsen.pdf
Solution Manual for Python for Everyone 2nd Edition Horstmann
ISTA 130 Lab 21 Turtle ReviewHere are all of the turt.docx
Python programming - Everyday(ish) Examples
Python Workshop - Learn Python the Hard Way
Teach The Nation To Code.pptx
Introduction to Python Language and Data Types
Teaching Deck_Coding Algorithms_V2.3.pptx
Teaching Deck_Coding Algorithms_V2.3.pptx
Solution Manual for Python for Everyone 2nd Edition Horstmann
Solution Manual for Python for Everyone 2nd Edition Horstmann
Python for Physical Science.pdf
pyton Notes9
Data Structure and Algorithms (DSA) with Python
cos 102 - getting into programming with python.pdf
The Python Workshop.pdf
Austin Python Learners Meetup - Everything you need to know about programming...

More from Andrew Willetts (17)

PPTX
Photoshop tutorial 5 clipping masks
PPTX
Year 8 python part 1 - debugging
PPTX
Year 7 e-safety part 2
PPTX
Year 7 e-safety part 1
PPTX
Photoshop tutorial 1 setting up the canvas
PPTX
Programming Challenge
PPTX
Programming Adding Interupts
PPTX
03 outputs
PPTX
Computer Devices - What Are they?
PPTX
Data Flow Diagrams
PPTX
Alice part 2 – background objects
PPTX
Alice part 1 – getting started Update
PPTX
Alice part 3 – adding text
PPTX
Alice part 1 – getting started
PPTX
Plenary animation quiz
PPTX
Database tasks
PPT
Part 5 – animating your character
Photoshop tutorial 5 clipping masks
Year 8 python part 1 - debugging
Year 7 e-safety part 2
Year 7 e-safety part 1
Photoshop tutorial 1 setting up the canvas
Programming Challenge
Programming Adding Interupts
03 outputs
Computer Devices - What Are they?
Data Flow Diagrams
Alice part 2 – background objects
Alice part 1 – getting started Update
Alice part 3 – adding text
Alice part 1 – getting started
Plenary animation quiz
Database tasks
Part 5 – animating your character

Recently uploaded (20)

PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Cell Structure & Organelles in detailed.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Complications of Minimal Access Surgery at WLH
PPTX
GDM (1) (1).pptx small presentation for students
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Classroom Observation Tools for Teachers
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Lesson notes of climatology university.
PPTX
Final Presentation General Medicine 03-08-2024.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Final Presentation General Medicine 03-08-2024.pptx
human mycosis Human fungal infections are called human mycosis..pptx
Cell Structure & Organelles in detailed.
Module 4: Burden of Disease Tutorial Slides S2 2025
Complications of Minimal Access Surgery at WLH
GDM (1) (1).pptx small presentation for students
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Classroom Observation Tools for Teachers
STATICS OF THE RIGID BODIES Hibbelers.pdf
Supply Chain Operations Speaking Notes -ICLT Program
102 student loan defaulters named and shamed – Is someone you know on the list?
Chinmaya Tiranga quiz Grand Finale.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
A systematic review of self-coping strategies used by university students to ...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Lesson notes of climatology university.
Final Presentation General Medicine 03-08-2024.pptx

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?