Skip to main content
CS Teaching Tips

Main navigation

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

Emphasize the need to account for the empty case, which is often overlooked and causes errors.

  • Remind students that the empty data structure is still a valid data structure.

More about this tip

Tags

  • Development Methods
  • Programming Concepts
  • Algorithms and Design
External Source

Interview with Jim Huggins

Other Tips By
Other Tips By Jim Huggins

Similar tips

Draw a digital 8 on the board to introduce an activity that uses the seven segment display to show how any information can be encoded into functions.
Misconception: Return is a mystery to students because they may not understand that functions have an entry point and an exit point. This results in mistakes such as assuming Python will return the right thing.
Ensure young CS students check their functions with a variety of inputs, as well as with edge cases.

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

Privacy Policy