Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def fibo2(n):
  2. total = 2
  3. history = [0,1]
  4. for i in range(0,n):
  5. total = history[-1]+history[-2]
  6. history.append(total)
  7. return history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement