title: To find if a number is fibonacci or not
body: <p>I am a student, new to python. I am trying to code a program that will tell if a user input number is fibonacci or not.</p>
  <pre><code>num=int(input(&quot;Enter the number you want to check\n&quot;))
  temp=1
  k=0
  a=0
  summ=0
  while summ&lt;=num:
      summ=temp+k
      temp=summ
      k=temp
      if summ==num:
          a=a+1
          print(&quot;Yes. {} is a fibonnaci number&quot;.format(num))
          break
  if a==0:
      print(&quot;No. {} is NOT a fibonacci number&quot;.format(num))
  #The program is working for only numbers upto 2.
  </code></pre>