For One and All


#1



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


It tells me that the loop didn't print 2

I don't know what's wrong here


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

for number in my_list: 2 * [1,9,3,8,5,7]
print number
 # Your code here


#2

Hi @giganinja10714,

From this line ...

for number in my_list: 2 * [1,9,3,8,5,7]

... remove this ...

 2 * [1,9,3,8,5,7]

The above does not multiply each item in my_list by 2 and display the result.

Instead, change the following print statement so that it displays the value of the expression, number * 2, instead of displaying the value of number ...

    print number

Also indent that statement when you revise it, so that it becomes part of the for loop.


#3

It worked. Thanks a lot :slight_smile:


#4