User Defined Variables


#1

my_list = [1,9,3,8,5,7]

 for number in my_list:
 
     print(number*2)

What is a user defined variable? How is each item in my_list assigned to the user defined variable number with out any direct variable statement. (number = .....)?


#2

python is doing that for you, how nice of python, isn't it?

each time the loops runs, python will re-assign a value to the number variable