Program to keep track of success percentage

Ian Kelly ian.g.kelly at
Sat Dec 8 15:41:09 EST 2018

On Sat, Dec 8, 2018 at 1:22 PM Alister via Python-list
<python-list at> wrote:
> On Sat, 08 Dec 2018 10:02:41 -0800, 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.
> To start describe how you would do it if keeping score on paper.
> a simple loop
> keep a count of the number for questions
> keep a count of the number.
> calculate the percentage.
> once you have what is known as pseudo code you will be 90% of the way
> there
> (python is effectively executable pseudo code anyway)
> this should be more than enough to help you with you homework without
> doing it for you

If this is not homework on the other hand, then my recommendation is
to just use a spreadsheet.

More information about the Python-list mailing list