You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason to introduce while loops beofore for loops? There is also more content on while loops than for loops. I think for loops are more common; while loops may not even be necessary.
The text was updated successfully, but these errors were encountered:
With while loops, you can see each of the initialization, stopping condition, and iterative step separately in 3 different lines. Because of this, you can explain the concept of loops more easily in a way that your users can grasp. Then, after the students understand the concept of a while loop, you can introduce the for loop and show that it is a more concise way of doing a while loop.
But so many errors are possible with while loops. I think for loops have training wheels and while loops are more flexible. I agree that for loops should go first.
Is there a reason to introduce while loops beofore for loops? There is also more content on while loops than for loops. I think for loops are more common; while loops may not even be necessary.
The text was updated successfully, but these errors were encountered: