Thank you for your suggestion and especially your time. I will study
your code:-)
Len Sumnler
--
http://mail.python.org/mailman/listinfo/python-list
I would split your code such that the Q&A is seperated from the
calculations, and I would model the bill something like :
class allbills(object):
def __init__(self, bill, tip):
self._bill = bill
self._tip = tip
def gettip(self):
return self._tip / 100.0
tip = p
I have coded this little program which is a small little tip calculator
program. I am in the process of trying to convert this program to use
OOP. Would appreciate others more experienced in OOP code in how they
might do it.
Would be happy to forward all profits from the sale of the program;-))