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

Alan Gilfoy agilfoy at frontiernet.net
Thu Aug 28 18:54:49 CEST 2008

Yeah, I did a lot of python work for my high school's Senior Project  
(so, spring 2007); hadn't coded much since then, was rusty on the  
"pritn stattements for debugging" part.

And I was trying to look at the code mentioned in the traceback, but  
due to my own mistake, I hadn't detected the problems with the lines  
that the traceback was pointing to.

Quoting Kent Johnson <kent37 at tds.net>:

> 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