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 - [email protected] http://mail.python.org/mailman/listinfo/tutor
