Fibonacci Series!

The Fibonacci series is named after Italian mathematician Leonardo Pisano Bogollo, later known as Fibonacci. Fibonacci discovered the sequence by posing the following question:

"If a pair of rabbits is placed in an enclosed area, how many rabbits will be born there if we assume that every month a pair of rabbits produces another pair and that rabbits begin to bear young two months after their birth?"

The Fibonacci series is a sequence of numbers where every term is a sum of its preceding two terms. The first two terms of this series are '0' and '1'. This series can easily be printed in python up to the nth term by following the below code.

n = int(input("Provide the nth term = "))
a = 0
b = 1
l = []
for i in range(n):
    l.append(a)
    a, b = b, a+b
print(l)

Suppose the nth term is 5, then the output will be

[0, 1, 1, 2, 3]