You are viewing a single comment's thread. Return to all comments →
def isFibo(n): a, b = 0, 1 lst = [a, b] while b < n: a, b = b, a+b lst.append(b) return 'IsFibo' if n in lst else 'IsNotFibo'
Seems like cookies are disabled on this browser, please enable them to open this website
Is Fibo
You are viewing a single comment's thread. Return to all comments →