Skip to content

Commit

Permalink
Create reading.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Foggalong committed Aug 22, 2014
1 parent 5d80cf4 commit 54d8163
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions reading.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/python3

from math import floor

text = input("Paste text...\n").strip().split(" ")
if len(text)/200 < 1:
print("~%d seconds reading" % (float(len(text))*0.3))
else:
print("~%d minutes %d seconds reading" % (floor(len(text)/float(200)), ((len(text)/float(200))-floor(len(text)/float(200)))*60))

0 comments on commit 54d8163

Please sign in to comment.