This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
slush:codetalkers [2017/05/19 14:18] – created oemb1905 | slush:codetalkers [2018/05/20 01:29] (current) – removed oemb1905 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | flip.py | ||
- | import random | ||
- | total = 0 | ||
- | |||
- | for i in range(2000000000000000000): | ||
- | flip = random.randint(0, | ||
- | total = total + flip | ||
- | average = total / (i + 1) | ||
- | print(i, flip, total, average) |