Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # credit goes to antiloquax for all the fib scripts
- # using a list
- print("Fibonacci")
- fib = [0, 1]
- for i in range(10):
- fib.append(fib[i] + fib[i+1])
- print(fib)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement