Python Debugging Practice Worksheet | 8 Find-the-Bug Problems + Answer Key PDF
NowPrice:SGD 2.32
Original Price: SGD 9.27
75% off
Sale ends on 13 December
Here's what's eligible:
- Your order doesn't match the item description or photos
- Your item arrived damaged
- Your item arrived after the estimated arrival window
- Your item didn't arrive or was lost in the mail
You can only make an offer when buying a single item.
Highlights
8 debugging problems where the code is already written and something is wrong. You read the error message or spot the wrong output, find the bug, and fix it. The bugs are the ones beginners actually run into, not contrived edge cases.
What's included:
- NameError from a typo in a variable name
- IndexError on an empty list, fixed with an empty-list guard
- Missing return statement (function builds the result correctly but returns None)
- KeyError fixed with dict.get(key, default)
- Accumulator variable reset inside the loop instead of before it
- Off-by-one: range(1, 5) stops before 5, so 5 never prints
- Mutable default argument (lst=[]) shared across all calls
- Logic bug where n % 2 == 1 misidentifies negative even numbers
Each problem shows the error message or wrong output upfront, same as a real debugging scenario. Full fix and explanation included for each one.
Instant Download
Your files will be available to download once payment is confirmed. Here's how.
Instant download items don’t accept returns, exchanges or cancellations. Please contact the seller about any problems with your order.
Etsy Purchase Protection
Shop confidently on Etsy knowing if something goes wrong with an order, we've got your back for all eligible purchases —
see programme terms
More from this shop
Visit shop-
Digital download
Python for Data Science Study Guide PDF | NumPy, Pandas & Statistics Complete Review
Sale Price SGD 2.58
Original Price SGD 10.29
-
Digital download
Python Cheat Sheet for Beginners | Syntax Quick Reference PDF | Variables Lists Loops Functions | Printable
Sale Price SGD 0.90
Original Price SGD 3.59
-
Digital download
Ontario SPH4U Physics Formula Cheatsheet PDF | Grade 12 University Prep Quick Reference
Sale Price SGD 2.06
Original Price SGD 8.23
-
Digital download
17-Week Semester Study Planner | Countdown Printable | Study Hours + Confidence Tracker PDF
Sale Price SGD 2.06
Original Price SGD 8.23
Be the first to leave a review
-
Digital download
Learn Python A Smarter Way eBook: Interactive Exercises
Sale Price SGD 7.63
Original Price SGD 11.75
-
Digital download
Python Kid’s Coding Worksheet / Tasksheet
SGD 5.78
-
Digital download
Learn Python in 30 Days: Beginner's Ebook (PDF)
Sale Price SGD 4.39
Original Price SGD 8.81
-
Digital download
Python Homework + Projects – Beginner Problem Solving Practice | with Solutions | Jupyter Coding Exercises
Sale Price SGD 12.36
Original Price SGD 20.58
-
Digital download
Python Projects for Beginners – 10 Hands-On Coding Exercises – Learn Programming Step-by-Step – Digital Download Bundle
Sale Price SGD 3.66
Original Price SGD 7.34
-
Digital download
Python Programming for Kids: Master the Basics of Coding with Fun, Interactive Exercises + Simple python cheat sheet | python workbook
SGD 15.39
-
Digital download
Python Homework + Projects – Beginner Problem Solving Practice | No Solutions | Jupyter Coding Exercises
Sale Price SGD 10.59
Original Price SGD 17.64
-
Digital download
Python Cheat Sheet Deutsch: Programming Basics (PDF Download)
Sale Price SGD 5.56
Original Price SGD 7.40
-
Digital download
Python for People Who Hate Math eBook | Automate Your Life | Beginner Programming Guide | No Equations Required | Digital Download
SGD 8.81
-
Digital download
Python Programming Exercises: Beginner to Advanced Coding Practice (Instant PDF Download)
Sale Price SGD 3.15
Original Price SGD 6.32
-
Digital download
Python Cheat Sheet for Beginners - Quick Reference PDF
Sale Price SGD 6.63
Original Price SGD 8.86
-
Digital download
10 Python Scripts for Your Website: includes scripts with easy-to-follow instructions
SGD 7.71
Shoppers with similar taste loved these
-
Women in Tech Sticker | STEM, Techie, Seattle, Keyboard, Laptop, Computer, Womxn, Cute | Designed in Seattle by VeeStudioCo
Sale Price SGD 4.71
Original Price SGD 5.88
-
Everything Is Under CTRL Sticker | Workplace Gamer Computer Science Meme Laptop Sticker
Sale Price SGD 5.52
Original Price SGD 7.35
-
Emotional Support Browser Tabs Sticker
SGD 7.34
-
Technology Teacher Shirt,Retro Tech Teacher Shirt,Stem Teacher Tee,Teacher Gift,Technology Lover Tee,Science Lover Gift,Technology Squad Tee
Sale Price SGD 15.87
Original Price SGD 31.75
-
Retro Technology Teacher Shirt, Tech Technology Gifts, Graphic Tees, Teacher Appreciation Gifts, Back To School, Computer Teacher Gift
Sale Price SGD 15.70
Original Price SGD 32.04
-
Progress Over Perfection Sticker, Motivational Sticker, Teacher Sticker, Mental Health Sticker, Sticky Note, Laptop Decal, Vinyl Sticker
SGD 5.88
-
Funny ChatGPT Vinyl Sticker: AI-Inspired Laptop Sticker
Sale Price SGD 4.40
Original Price SGD 5.87
-
EdTech Teacher Stickers | Educational Technology Stickers for Teachers, Connected Classroom Laptop Decals, Teacher Appreciation Gift
SGD 13.23
-
Software engineer vinyl sticker | computer science sticker | laptop waterbottle decal sticker
SGD 6.24
-
In my tech era teacher shirt, technology teacher gift shirt, retro tech teacher shirt, tech teacher lover, stem teacher, best teacher tee
Sale Price SGD 22.63
Original Price SGD 41.15
-
Robotics Shirt, Robotics Team Shirt, High School Robotics, Robotics Tshirt, Robotics Competition, Maker Day, Robotics Gift
Sale Price SGD 25.36
Original Price SGD 33.81
-
Into Robotics Now Sweatshirt, Funny Robotics Quote, Robotics Club, Robotics Team Sweatshirt, Engineering Humor, Gift for Robotics Student
Sale Price SGD 50.93
Original Price SGD 80.83