LegionMammal978

A program

Dec 29th, 2016
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import fractions
  2. import os
  3. import sys
  4. import time
  5.  
  6. os.system('cls' if os.name == 'nt' else 'clear')
  7. with open(sys.argv[1]) as a:
  8. b = fractions.Fraction(a.read())
  9. while True:
  10. b = 256*b
  11. c = int(b)
  12. sys.stdout.write(chr(c))
  13. if c == 10:
  14. time.sleep(1)
  15. b = b - c
Advertisement
Add Comment
Please, Sign In to add comment