2. List element modification


#1




https://www.codecademy.com/courses/python-beginner-nzzVa/0/2?curriculum_id=4f89dab3d788890003000096#


Oops, try again. Did you accidentally remove the print statement that was on line 4?


I expected a lesson pass but aparently not. Could someone help?


n = [1, 3, 5]

n[1] = n[1] * 5
print n[1]


#2

n = [1, 3, 5]
# Do your multiplication here
n[1]=n[1]*5
print n
#print n not n[1]

#3

Oh shoot thank you!!!!!
I thought it wanted proper spacing and to print only part of the list


#4

The accepted answer does not sufficiently explain the problems in the OP's code.


#5

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