Hi John,
> File "page114.py", line 12
>inventory = ("Sword","Armor","Shield","Healing
> Potion")
>^
> SyntaxError: invalid syntax
The inventory= line should all be on a single line, Python doesn't like
you breaking strings across lines (unless they are triple quoted).
However, in
--- Brian van den Broek <[EMAIL PROTECTED]> wrote:
> Hi John,
>
> sometimes the syntax error indicator isn't quite
> pointing to the
> problem. In your case, the place it points was where
> Python worked out
> there was a problem, but the difficulty with your
> code is several
> lines up (I've
John Joseph said unto the world upon 31/12/05 02:09 AM:
> Hi
>I am trying out learning python , using the book
> “Python Programming for the absolute beginner “ by
> Michael Dawson
>I get
> File "page114.py", line 12
> inventory = ("Sword","Armor","Shield","Healing
> Po
Hi
I am trying out learning python , using the book
Python Programming for the absolute beginner by
Michael Dawson
I get
File "page114.py", line 12
inventory = ("Sword","Armor","Shield","Healing
Potion")
^
SyntaxError: invalid syntax
when I run the program