Fibonacci number

Python Program for How to check if a given number is Fibonacci number

Hi Gayatri Lakhotia, we got your query and are working on the resolution.

Generate the sequence of Fibonacci numbers. For each of the generated Fibonacci numbers:

  • If it is equal to your candidate number, return True.
  • If it is greater than your candidate number, return False

Capture

1 Like