For one and all


Exercise 8 Lesson 15 Python lists and dictionaries

File "python", line 3
for 2* in my_list:
SyntaxError: invalid syntax

i do not really know

Replace this line with your code. 
my_list = [1,9,3,8,5,7]

for 2* in my_list:
    # Your code here
print 1


first loop over items in my_list, then inside the loop multiply each item by 2


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