Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Episode 2: Clarify loop variable need not appear within loop itself #512
Perhaps we should state explicitly that the loop variable need not always be used within the loop itself?
Perhaps the confusion stems from the text that says:
It's not immediately obvious to me how we could modify this statement in a 'nice' way to highlight the caveat that the variable need not be used. Perhaps we could instead add the following text to the paragraph just below the example loop that repeatedly updates the variable 'length':
along with the following 'hint' in the 'Computing Powers With Loops' exercise:
A naive question: