For One and All


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


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.


It worked. Thanks a lot :slight_smile: