# Python Program to Print Fibonacci Series using List

## Fibonacci Series in Python:

In Python, the Fibonacci series is a series of numbers formed by the addition of the preceding two numbers in the series. It’s named after Italian mathematician, known as Fibonacci.

```n=int(input("Enter the number terms: "))
f=0
sum=1
if n<=0:
print("The fibonacci series is: ",f)
else:
print(f,sum,end=" ")
for x in range(2,n):
next=f+sum
print(next,end=" ")
f=sum
sum=next
```

Output: Fibonacci Series in Python using List:

```p=0
q=1
n=int(input("Enter the number of terms: "))
i=2
List=[p,q]
while i<n:
fibo=p+q
List.append(fibo)
p=q
q=fibo
i+=1
print(List)
```

Output: Fibonacci series in Python using function:

```def fibo(number_of_terms):
counter = 0

first = 0
second = 1
temp = 0

while counter <= number_of_terms:
print(first)
temp = first + second
first = second
second = temp
counter = counter + 1
print("The Fibonacci Series is: ")
fibo(10)
```

Output: Fibonacci series in Python using recursion:

```def fibonacci(term):
if term <= 1:
return (term)
else:
return (fibonacci(term-1) +fibonacci (term-2))

number_of_terms = 10
for i in range(number_of_terms):
print(fibonacci(i))
```

Output: 