I am new in python and I am trying to make a simple cicle for this my code:
for i in range(0,5) :
if i==0 :
b=b.append(1)
else:
result=(b[i-1]+1)
b.append(result)
return(result)
File "", line 5 b=b.append(1) ^ IndentationError: expected an indented block
how can I fill a vector or matrix with my results?