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 06:45:36 CEST 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