Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fibo2(n):
- total = 2
- history = [0,1]
- for i in range(0,n):
- total = history[-1]+history[-2]
- history.append(total)
- return history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement