10/18


#1

plz help me solve this question, thanks a lot


#2

I'm sure we can help you, though we'll need more information. Could you post your code and the error you're getting? The steps you've already tried to resolve the issue wouldn't hurt either.


#3

Answer:
def list_function(x):
(indent) x[1] = x[1] + 3
(indent) return x

n = [3, 5, 7]
print list_function(n)


#4

I used your exact same code and it worked fine. I recommend messing around with the indents and it should be fine


#6

This code does not work. Error messages:


Oops, try again. Your code looks a bit off. Check the console window for errors!


File "python", line 2
(indent) x[1] = x[1] + 3
^
IndentationError: expected an indented block