Bugs are normal. Here's how to squash them.
It often tells you the line and the problem.
What should happen? What actually happens?
Test small parts one at a time.
Spelling, brackets, order of steps, variable names.
Then test again.
Explain your code out loud.
Safe hands make great work
Glasses, aprons and closed shoes.
Ask the teacher for a demonstration first.
Keep both hands clear of blades.
A tidy space is a safe space.
If unsure, ask before you start.
Copy any resource into your Heapso plans, then change it for your class. Free to sign up.