Re: [Tutor] Not workin!

2009-10-01 Thread Kent Johnson
On Wed, Sep 30, 2009 at 1:32 AM, Luke Paireepinart wrote: > Oops, thanks for catching that one Marty. I thought they both > evaluated to false. They both evaluate to false in a boolean context but that is different from being *equal* to false or to each other. In [1]: s = '' In [2]: bool(s) Out

Re: [Tutor] UnboundLocalError and Break

2009-10-01 Thread Luke Paireepinart
You're using a global variable (playHP) in a function, but you haven't told the function that playHP is supposed to be a global variable.You're going to want to change your function definition to: def monsAttk (damage, attack): #A monsters attack *global playHP* * On Wed, Sep 30, 2009 at 9:13

Re: [Tutor] help with alternate execution

2009-10-01 Thread Dave Angel
You top-posted, and sent the mail to me privately (off-list). That's not how mailing lists work. wrobl...@cmich.edu wrote: Thank you for the reply.. I tried putting the print repr(n) before I defined 'n' with raw_input. My script looks like this-- def divisible(n): if n%3 == 0:

Re: [Tutor] help with alternate execution

2009-10-01 Thread Dave Angel
You sent the mail to me privately (off-list). That's not how mailing lists work. wrobl...@cmich.edu wrote: Thank you for the reply.. I tried putting the print repr(n) before I defined 'n' with raw_input. My script looks like this-- def divisible(n): if n%3 == 0: print n, "is di