from random import randint
def mille_sauts():
position=0
for i in range(1000):
if randint(0,1)==0:
position=position+1
else:
position=position-1
return position
#print(mille_sauts())
def cent_metres(n):
p=0
for i in range(n):
position=mille_sauts()
if position>100:
p=p+1
return p
print(cent_metres(10000))
To embed this project on your website, copy the following code and paste it into your website's HTML: