Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • About
  • Cards
  • Rate Tips
  • Tip Sheets

Be on the lookout for loop syntax that belongs to another language when students are learning multiple languages because they sometimes confuse syntax and create hard to spot bugs.

Share Be on the lookout for loop syntax that belongs to another language when students are learning multiple languages because they sometimes confuse syntax and create hard to spot bugs. with FacebookShare Be on the lookout for loop syntax that belongs to another language when students are learning multiple languages because they sometimes confuse syntax and create hard to spot bugs. with Twitter
Like(433 Likes)
    Here are some examples of for loops in different languages to look out for:
    • Python: for x in range(0, 9):     # your code goes here
    • Java: for (int x=0; x<10; x++) {     // your code goes here }
    • C: int x; for ( x=0; x<10; x++) {     /* your code here */ }

More about this tip

Tags

  • Java
  • Python
  • C
  • Programming Concepts
  • Development Methods
External Source
Interview with Chinma Uche
Other Tips By
Other Tips By Chinma Uche

Similar tips

Explore students’ syntax errors to reveal their misconceptions.
Use Class Responsibility Collaboration (CRC) cards to consistently introduce ideas like objects throughout an AP CS course.
Demo visualizations of code executing online, using tools like Python Tutor, and on paper before having students practice visualizing code execution in the same way to better learn how code executes.
  • CSTT Facebook
  • CSTT Twitter

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

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College