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



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:


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


Oh, alright. Thanks for the help!


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