You are viewing a single comment's thread. Return to all comments →
def checkSquare(value): return int(sqrt(value))**2 == value def isFibo(n): if checkSquare(5*n**2 + 4) == True or checkSquare(5*n**2-4) == True : return "IsFibo" else: return "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 →