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
binary_search
PVJ-COMP1-1-EQUIPO1
Fibonacci to the Nth number
abstract base class
ASICC art
json array object loop
lab00.py
Game4
solving a linear system of equations
try1