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

#1

This error is displayed when I save & submit code: "Oops, try again. Did you accidentally remove the print statement that was on line 4?"

Why is that happening? Is it a bug?

This is the code:
n = [1, 3, 5]

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

#2

#3

I think you just need to fix your print. The correct output is the full list: [1, 15, 5].

The steps they walk you through are a bit confusing on this one, but the goal is to modify only the item in position 1 but to print the entire list!

So, just change the print from 'print n[1]' to 'print n'

#4

Thank you codyroche, I misinterpreted the rubric albeit it is kinda confusing.

#5

This is what worked for me:

n = [1, 3, 5]

n[1] = (3 * 5)
print n

#6

n = [1, 3, 5]

n[1] *= 5
print n

Here we are asked to overwrite the second element of list by multiplying it with 5 and print the output to be [ 1, 15, 5 ].
So index of second element will be 1 and multiplying with 5 ( i.e n[1] * = 5 or n[1] = n[1] * 5 )

#7

What if you replace your second element of list from 3 to let's say 11 ?
you cannot directly place the value of list in the multiplication. You need to call the value from the list.

n[1] * = 5

#8

n = [1, 3, 5]

n[1] = (11 * 5)
print n

[1, 55, 5]

#9

n = [1, 3, 5]

n[1] = n[1] * 5

print n

#10

This is al I did and it worked:
n[1] * 5
n[1] = n[1] * 5
print n

You don't need anything else thus is the simplest way!

#11

simpler way:

n[1] = 15

print n