I'm trying to do a for loop. Introduce a value (p) into an empty list. I want to do a kind of vector that save me all source values of the math operations.
lista=list()
for index in len(lista+1):
lista.append(p)
index=index+1
print lista
Thx for your help
lista.append(p).lista.extend(p * n).lista+1) and (2) trying to iterate over an int (len(lista+1)). Neither of these makes sense, and both result in errors.