Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Page 353 ex 42
from random import randint compteur=0 #MODIFIER LA VALEUR DE N POUR OBTENIR LES REPONSES A LA QUESTION 3 N=1000 for i in range(N-1): if randint(1,2)==1: if randint(1,5)<=1: compteur+=1 elif randint(1,3)<=1: compteur+=1 print("Pour ",N," parties jouees, la fréquence de parties gagnees est de ",compteur/N,".")
run
|
edit
|
history
|
help
0
oops1.py
H.W5
Ex1
.....✓[Guess the number]®®®®®®®•$$$$✓.....
Eje2_Python_201169275
kill
HW L3
Dont know, Dont care
lesson 6 finallll
Calc1