nthfibseries
def nthseries(n):
if n < 1:
return "Incorrect input"
elif n == 1:
return 0
elif n == 2:
return 1
elif n > 2:
return nthseries(n-1)+nthseries(n-2)
print(f"n th fib series is {nthseries(9)}")INFO