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
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
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:
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