Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Teach students how to trace out-of-bounds errors by demonstrating on the board.

  • Explicitly write, cross out, and update variable-value pairs when tracing through code that iterates.

More about this tip

Tags

  • Development Methods
External Source

Interview with Nick Melnyk

Other Tips By
Other Tips By Nick Melnyk

Similar tips

Have students create their own free & open-source software as a project to increase motivation and meet learning objectives.
Do not have students write code for common algorithms. Instead, incorporate common algorithms into your class in novel course-specific variants
Reinforce that certain types in Python such as lists are mutable while others (e.g. strings, tuples) are not. Students have difficulty tracing code that uses mutable types because they often forget this.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy