Advertisement
triclops200

Untitled

Jan 25th, 2013
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. f = open("output", "ru")
  2. o = []
  3. for line in f:
  4.     xs = line.split(" ")
  5.     o.append(xs[1])
  6.  
  7. i = 0
  8. oo = []
  9. for x in range(len(o)/2):
  10.     oo.append((float(o[i]),float(o[i+1])))
  11.     i+= 2
  12.  
  13. counter = 0
  14. ucount = 0
  15. for x in oo:
  16.     if x[0]/x[1]<1:
  17.         ucount+=1
  18.     counter += 1
  19.  
  20. print str(ucount)+ "/" + str(counter) +" were tails biased"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement