x=int(input("Enter that number:"))
i=0
m=0
def fact(n):
return 1 if(n==1 or n==0) else n+fact(n-1)
while(1):
m=fact(i)
if(m==x):
print("Yes this is a Fib")
break
if(m>x):
print("This is not a Fib")
break
i+=1
this is a code that is used to show if a number is in a fibniocci series or not can someone please tell me why this isnt working This shows not a fibonnicio series even if a number is of the series