How to make the code calculate not one number, but several? That is, so that the user can enter several times a different number of the number from which we subtract? and so that later it would be possible to build a graph from the obtained numbers.
f1 = 1
f2 = 1
n = int(input("Enter the number from which we subtract the previous one:"))
for i in range(n - 1):
f2,f1 = f2+f1, f2
print(f2**2 - f1**2)