Skip to main content
CS Teaching Tips

Main navigation

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

Encourage students to write the inside of the loop before the loop syntax to help students recognize the conditions necessary for iteration.

  • Direct students struggling with loops to write on paper what should happen, then have them determine the start, end, and update values.

More about this tip

Tags

  • Development Methods
  • Programming Concepts
External Source

Interview with Nick Melnyk

Other Tips By
Other Tips By Nick Melnyk

Similar tips

Step through an accumulator pattern on board to make clear how variables change within a while loop to help students understand this confusing topic.
When explaining code to the class, project your code and use a tablet to draw on top of it. Ask students for debugging suggestions to make them more comfortable finding bugs and to show them that all programmers, even you, make mistakes.
Start programming courses with HTML to get students to engage with programming languages by building off of their pre-existing, experiential curiosity.

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

Privacy Policy