[Tutor] calculate percents of items in a list

Danny Yoo dyoo at hashcollision.org
Sun Aug 31 21:42:35 CEST 2014


On Aug 31, 2014 11:34 AM, "LN A-go-go" <lnartist at yahoo.com.dmarc.invalid>
wrote:
>
>
> What would be a better way to calculate percentages of items in a list?
> please....
>

Without showing us your code, try to explain a few examples of the problem
you're trying to solve, and show us expected answer. The problem of just
showing code is that it may work perfectly well, and yet do things that you
do not want.

Concretely, I have no idea what you mean by the term "calculate percentage
of items in a list".  You need to explain the idea in terms that are
independent of your code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140831/b142a335/attachment.html>


More information about the Tutor mailing list