2 || List Element Modification || "Did you accidentally remove the print statement that was on line 4?"


#1


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

I have what I believe to be the correct code and don't really see anything wrong with. It's likely just a structure-sensitivity thing, but I'd like to make sure and find out what the error actually is. Here is my code:


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

Thank you! :sunny:


#2

you should print the whole list, not just the item at index 1


#3

Oh, alright. Thanks for the help!


#4

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