2/18 Issues


I'm stuck at List element modification:


I run this bit of code:

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

It returns with a dialogue box stating:

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

It prints the correct number, 3 * 5 but it doesn't say that I have done it correctly. I'm a completionist and I want this to be finished because it's pretty easy!


You need to print out the entire list, not just the middle element.


So it will be
print n


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