program that prints fibonacci series in python range code example
Example 1: fibonacci series in python
#Recursive Solutions
def fibo(n):
if n<=1: return 1
return fibo(n-1)+fibo(n-2)
fibo(5)
#OUTPUT:
#120
Example 2: fibonacci series for loop python
# # this is the fibonacci series by KV for for loop :)
n = int(input(":"))
for i in range(1,n+1):
print(i, end = "")