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
- # fib.py - calculates the fibonacci series
- a = 0
- b = 1
- print("Fibonacci")
- print(a, b, end="")
- for i in range(10):
- c = b + a
- print(c, end= "")
- a, b = b, c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement