| Gain (€) | Nombre de tickets |
|---|---|
| 25 000 | 3 |
| 1 000 | 8 |
| 100 | 415 |
| 20 | 45 000 |
| 10 | 101 350 |
| 6 | 150 000 |
| 4 | 476 000 |
| 2 | 661 500 |
from random import *
def jeu(n)
S = 0
for i in range(...):
a = randint(1, 100)
if a<= 32:
S= S + 1
return S/...import matplotlib.pyplot as pl
def graphe():
for j in range(100):
y = jeu(400)
pl.scatter(j, y)
pl.plot([0,100], [0.27,0.27])
pl.show()
Nos manuels sont collaboratifs, n'hésitez pas à nous en faire part.
j'ai une idée !
Oups, une coquille