...def mean(data):
return float(sum(data))/len(data)
...
def flip(N):
return [(random.random()>0.5) for i in range(0,N)]
N=1000
f=flip(N)
print mean(f)
computinglogA log of developer's updates,problems, tricks, documentations,etc. Use Categories to find your topic of interest. Categories
All
Regular blog"
