Was 'number' defined



why do we use 'number' in the for when it wasnt a variable


you define number inside the loop. Its gets assigned all values from your list (in order)

given you define the iterator in the loop, you are free to name it something different. Go ahead and try it if you want


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.