I am very very new in Python and I am trying to create a new list out of two lists when I add the two. But I get an error message which I don't really understand why (see below). I cannot use sum or numpy because it is an assignement.
For addition I wrote:
x=[24,54,84]
y=[2]
def addition(x,y):
a=len(x)
for i in range(a):
x[i]=x[i]+y
return x[i]
print(addition(x,y))
the error message I get is:
x[i]=x[i]+y
^
IndentationError: expected an indented block