Program to keep track of success percentage
Cousin Stanley
HooDunnit at didly42KahZidly.net
Sat Dec 8 16:01:32 EST 2018
Musatov wrote:
> I am thinking about a program where the only user input is win/loss.
>
> The program let's you know if you have won
> more than 31% of the time or not.
>
> Any suggestions about how to approach authoring
> such a program? Thanks.
The following results are from a python toss_up program
using the python random.choice module where win or lose
was chosen randomly for each try for various numbers of tries ....
For random choice of win or lose
distribution seems to be very even
for each result ....
# tries win % lose %
10 50.00 50.00
100 52.00 48.00
1000 48.40 51.60
10000 49.75 50.25
100000 50.17 49.83
1000000 50.00 50.00
--
Stanley C. Kitching
Human Being
Phoenix, Arizona
More information about the Python-list
mailing list