You are viewing a single comment's thread. Return to all comments →
return "IsNotFibo" if (5*n**2+4)**0.5 % 1 and (5*n**2-4)**0.5 % 1 else "IsFibo"
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 →
return "IsNotFibo" if (5*n**2+4)**0.5 % 1 and (5*n**2-4)**0.5 % 1 else "IsFibo"