I got this question correct after checking on the forum essentially i just looked at the back of the question book for the answer.
I just don’t understand the logic behind what i have done. I’ve used the variable number however i haven’t given it a value which i thought i would’ve had to do for it to work.
my_list = [1,9,3,8,5,7]
for number in my_list:
print 2 * number
Essentially i’m asking what does the variable number represent in the code i have written?