2. List element modification



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]


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


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


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


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