Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def rngRead():
  2.  
  3. total = 0
  4.  
  5. opFile = open('random.txt', 'r')
  6. opRead = opFile.readlines()
  7.  
  8. for line in opFile:
  9. opNum = 0
  10. try:
  11. opNum +- float(line)
  12. total += opNum
  13. print(total)
  14. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement