Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
If else if in 2 ways
thermal_containers
Fu 1
test3.py
Bubble sort
shivareddy correct
Lesson 2
Faiha - Lesson 8
kenken1
WORD THING
Please log in to post a comment.