My code output in python console looks sth like this:
1. 0
2. 1
...
10. 15
11. 37
12. 112
13. 4562
what to do to make it look like this:
1. 0
2. 1
...
10. 15
11. 37
12. 112
13. 4562
all numbers shifted toward right?
So here is the code:
i = 0
first = 0
sec = 1
fib = 0
numeration = 1
amount = int(input("How many numbers from Fibonacci sequence you want to see?\n"))
print("Fibonacci sequence:")
for i in range(amount):
print(str(numeration) + ".", fib)
fib = first + sec
sec = first
first = fib
i += 1
numeration += 1