Was 'number' defined


#1



https://www.codecademy.com/en/courses/python-beginner-en-pwmb1/1/5?curriculum_id=4f89dab3d788890003000096


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



#2

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


#3

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