Why students don't learn looping?
The most difficult concept for teaching programming to new students is looping. Students often fail to understand looping because they don't run the loop in their head , and don't think what will be the value of the variable in each loop. The following way of commenting on the loop will help students to understand the loop quickly. Ask them to run the loop in the head, and then comment on what the variables will be in each step of the loop. Remember to maintain the format while writing the comment, don't use short cuts, it will hinder the understanding. Loops with comments squares = [] for value in range(1,11): #loop1 -> value=1, #loop2 -> value=2, #loop3 -> value=3 square = value**2 #loop1 -> value=1, square=1, #loop2 -> value=2, square=4, #loop3 -> value=3, square=9 print(squares) #loop1 -> squares=[], #loop2 -> squares=[1], #loop3 -> squares=[1,4] squares.append(square) #loop1 -> square=1, squares=[1], #loop2 -> square=4, squares=[1,4...