[Tutor] It works! (my booster pack generator)

Kent Johnson kent37 at tds.net
Thu Aug 28 18:11:24 CEST 2008


On Thu, Aug 28, 2008 at 11:49 AM, Alan Gilfoy <agilfoy at frontiernet.net> wrote:
> The booster pack generator (my use of random.sample as described in a
> previous message) is working as intended now.
>
> There was a rather stupid typo in my code that was causing it to go wonky.
>
> Y'all still helped, though. A few people replied, but a bit of advice from:
> W W <srilyk at gmail.com> pointed me in the right direction.

As well as the lesson about using print statements to debug, I hope
you have learned to believe the interpreters error messages. It
usually knows what it is talking about :-)

Kent


More information about the Tutor mailing list