I assigned the optimal time of 960min to x. >>> x=960.0 Then I assigned the time used 189min to y. >>> y=189.0
Then I divide the time used(y) by the optimal time(x) and multiply the answer by 100 and assign the answer to z. >>> z=(y/x)*100 The answer. >>> z 19.6875 For Python to give you an accurate answer you must include decimal points. I hope this helps. -- https://mail.python.org/mailman/listinfo/python-list