Home Free Printables 4th Grade Coding — Debugging — Part 10 Preview — download the full PDF for print-quality output
Science 4th Grade Ages 9–10
4th Grade Coding — Debugging — Part 10 Free printable debugging — part 10 coding worksheet. Find and fix mistakes so the program does what you want. This is part 10 of 20. Part of the Debugging lesson track. For 4th Grade Coding (ages 9–10).
Skills Covered Coding Logic Problem SolvingFree PDF Download · Print Unlimited Copies
Download Free PDFCoding — Debugging — Part 10 Learn the concept, study the code, then try the challenge! 💻 Debugging Every programmer finds bugs. The key is a systematic approach to fixing them. Code Example: # Can you spot the bug? total = 0 for i in range(1, 5): total = total + 1 # Should add i print('Sum:', total) Steps: 1. Read the error message (if any) 2. Check spelling and capitalization 3. Look at indentation and colons 4. Print values to see what's happening 5. Fix one thing, then test again 🚀 Try It! The code should print the sum 1+2+3+4=10 but prints 4. Fix the bug. 🐛 Debug Challenge: for i in range(10): print(i) — prints 0–9 instead of 1–10. Fix it! My Fix: 4th Grade — Page 1 www.littleactivity.com
Instant download. PDF is generated in your browser.
📦
Want more Science worksheets? Get full printable packs with 50+ worksheets for 4th Grade — organized by skill level with answer keys included.
Browse Printable Packs
How to Use This Worksheet Step 1
Download PDF Click the download button above. The PDF is generated instantly in your browser — no waiting.
Step 2
Print at Home Print on standard A4 or US Letter paper. Works with any home printer — color or black & white.
Step 3
Learn & Play Give it to your child with crayons, pencils, or markers. Reprint as many times as needed!
More Science Printables Click any worksheet to view and download for free
📦
Love this worksheet? Get the full pack! 50+ science worksheets for 4th Grade — organized by skill level, with answer keys and progress tracking.
Instant download Print unlimited copies Answer keys includedAI-powered activity ideas to keep your little ones learning, playing, and growing every day.
© 2026 LittleActivity. All rights reserved.
Built for families who love playtime
Coding — Debugging — Part 10 Learn the concept, study the code, then try the challenge! 💻 Debugging Every programmer finds bugs. The key is a systematic approach to fixing them. Code Example: # Can you spot the bug? total = 0 for i in range(1, 5): total = total + 1 # Should add i print('Sum:', total) Steps: 1. Read the error message (if any) 2. Check spelling and capitalization 3. Look at indentation and colons 4. Print values to see what's happening 5. Fix one thing, then test again 🚀 Try It! The code should print the sum 1+2+3+4=10 but prints 4. Fix the bug. 🐛 Debug Challenge: for i in range(10): print(i) — prints 0–9 instead of 1–10. Fix it! My Fix: 4th Grade — Page 1 www.littleactivity.com
Sound Vibration Experiment Complete this lab report for your investigation. 🔬 Sound Vibration Experiment Purpose / Research Question: What question are you investigating? Materials: List all materials you need for this experiment Hypothesis (If... then... because...): If I change ___, then ___ will happen because... Independent Variable: What I am changing Dependent Variable: What I am measuring Procedure: 1. Set up experiment 2. Collect data 3. Record observations 4. Analyze results 5. Draw conclusion Data / Results: Trial Variable Result 1 (example) (record here) 2 3 Conclusion: Based on my data, I found that... 1st Grade — Page 1 www.littleactivity.com
Diagram — Light Spectrum Label the diagram. Use the word bank below. 🏷️ Light Spectrum [Diagram] Word Bank: red orange yellow green blue violet Notes: 1st Grade — Page 1 www.littleactivity.com
Shadow Experiment Record Complete this lab report for your investigation. 🔬 Shadow Experiment Record Purpose / Research Question: What question are you investigating? Materials: List all materials you need for this experiment Hypothesis (If... then... because...): If I change ___, then ___ will happen because... Independent Variable: What I am changing Dependent Variable: What I am measuring Procedure: 1. Set up experiment 2. Collect data 3. Record observations 4. Analyze results 5. Draw conclusion Data / Results: Trial Variable Result 1 (example) (record here) 2 3 Conclusion: Based on my data, I found that... 1st Grade — Page 1 www.littleactivity.com
Lab Report — Pitch Complete this lab report for your investigation. 🔬 Lab Report — Pitch Purpose / Research Question: How do I write a clear and organized report? Materials: computer, research notes, outline template Hypothesis (If... then... because...): If I follow a report structure, then my writing will be organized... Independent Variable: Report structure and organization Dependent Variable: Clarity and completeness of the final report Procedure: 1. Choose your topic and gather notes 2. Write an outline with main sections 3. Draft introduction and body paragraphs 4. Add evidence from your research 5. Write conclusion and proofread Data / Results: Section Key Points Sources Used Introduction Hook + thesis None Body 1 Conclusion Conclusion: Writing a report taught me... 1st Grade — Page 1 www.littleactivity.com
Lab Report — Volume Complete this lab report for your investigation. 🔬 Lab Report — Volume Purpose / Research Question: How do I write a clear and organized report? Materials: computer, research notes, outline template Hypothesis (If... then... because...): If I follow a report structure, then my writing will be organized... Independent Variable: Report structure and organization Dependent Variable: Clarity and completeness of the final report Procedure: 1. Choose your topic and gather notes 2. Write an outline with main sections 3. Draft introduction and body paragraphs 4. Add evidence from your research 5. Write conclusion and proofread Data / Results: Section Key Points Sources Used Introduction Hook + thesis None Body 1 Conclusion Conclusion: Writing a report taught me... 1st Grade — Page 1 www.littleactivity.com
Lab Report — How Does Sound Travel? Complete this lab report for your investigation. 🔬 Lab Report — How Does Sound Travel? Purpose / Research Question: How do I write a clear and organized report? Materials: computer, research notes, outline template Hypothesis (If... then... because...): If I follow a report structure, then my writing will be organized... Independent Variable: Report structure and organization Dependent Variable: Clarity and completeness of the final report Procedure: 1. Choose your topic and gather notes 2. Write an outline with main sections 3. Draft introduction and body paragraphs 4. Add evidence from your research 5. Write conclusion and proofread Data / Results: Section Key Points Sources Used Introduction Hook + thesis None Body 1 Conclusion Conclusion: Writing a report taught me... 1st Grade — Page 1 www.littleactivity.com