Skip to main content
CS Teaching Tips

Main navigation

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

Tell students that they have to fix their indentation before you’ll help them debug to encourage well-organized code.

Share Tell students that they have to fix their indentation before you’ll help them debug to encourage well-organized code. with FacebookShare Tell students that they have to fix their indentation before you’ll help them debug to encourage well-organized code. with Twitter
  • The well indented, and thus easier to read code, makes helping students much more straight forward.
  • Making students indent first also reinforces the importance of well organized, clean code.

More about this tip

Tags

  • Development Methods
  • Programming Concepts
External Source

Interview with Seth Reichelson

Other Tips By
Other Tips By Seth Reichelson

Similar tips

Misconception: The update in the index in a for loop (i.e., the third part of the for loop control statement) happens after the all the steps inside of the loop have happened.
Help students build intuition about recursion in Python by comparing each recursive call to a function call, which may be more intuitive for students in introductory classes.
Motivate for-loops by having students informally describe how to draw a set of 5 shapes, then having them turn this description into pseudocode to practice for-loops.

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

Privacy Policy