Advertisement
Guest User

Untitled

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