Advertisement
thekin

Python - Fibonacci Sequence

Oct 5th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. import time
  2.  
  3. num1 = 1
  4. num2 = 1
  5.  
  6. while True:
  7.   print("%s | %s" % (num1, num2))
  8.   num1 += num2
  9.   num2 += num1
  10.   time.sleep(0.05)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement