I have a problem..please help
Alex Martelli
aleax at aleax.it
Wed Sep 19 18:39:00 EDT 2001
Patio87 wrote:
> Im trying to make a game and was wondering if someone could help me
> I have a couple of lines of code that will only work in interactive mode.
> here is:
>
> hp = 100
> hp - 30
>
>
> and just a simple couple lines is what is confusing me. It spits out 30
> in interactive mode but when i run it in ide it just gives me a prompt
> please help me, pAT
Change the second line into
print hp - 30
and it will work both interactively and in a script.
Alex
More information about the Python-list
mailing list