On 8/6/07, Eric Brunson <[EMAIL PROTECTED]> wrote: > > Try something like: > > def makechange( amount, denominations ): > > coins = {} > for d in denominations: > coins[d] = int( amount/d ) > amount = amount%d > > return coins > > Sorry, but could you spell out your point?
Dick
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor