SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def Fib(i):
  2.     l=[0,1]
  3.     for i in range(0,i-2):
  4.         m=l[i]+l[i+1]
  5.         l.append(m)
  6.     print(l)
  7.  
  8. a=int(input('How many fibonacci numbers to generate: '))
  9. Fib(a)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top