looping through possible combinations of McNuggets packs of 6, 9 and 20

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Fri Aug 13 00:45:36 EDT 2010


In message <mailman.1996.1281605023.1673.python-list at python.org>, Jean-
Michel Pichavant wrote:

> for mcNugget in range(0,10):
>     sendTo(trashbin)

Ah, but should that be

    mcNugget.sendTo(trashbin)

or

    trashbin.insert(mcNugget)

?



More information about the Python-list mailing list