Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Page353ex42
from random import randint compteur=0 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
fibo_1
Lawrence.py
ok
wordchangething
A list is shuffled and reshuffled till the 0th index of the list matches
square function
Email_Python
Game4
PySlots2
raja sainik