I am using python 3.8.8 and while running a simple program of Fibonacci it is giving me an error i.e. unsupported operand type(s) for +: 'NoneType' and 'NoneType'
def fibo(n):
if n <= 1:
print("Hey! Please enter value greater than 1")
else:
return((fibo(n-1)) + fibo(n-2))
nterms = 10
res = fibo(nterms)
print(res)