Johan Geldenhuys wrote:

>Hi all,
>
>What is the syntax if I want to work out what percentage 42 is out of 250?
>  
>
Johan,

You could try:

percentage = (42 * 250)/100

This gives the answer 105.

Cheers,
F.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to