
from random import*
def partie():
gain = 0
for i in range(10):
if random() < 0.2:
...
else:
...
return(gain/10)
proche = 0
for i in range(100):
if ...:
proche = proche + 1
print(proche/100)
Nos manuels sont collaboratifs, n'hésitez pas à nous en faire part.
j'ai une idée !
Oups, une coquille