RE: Another Python Indentation Problem

  • From: Johannes Grib <johannesg@xxxxxxxxx>
  • To: "programmingblind@xxxxxxxxxxxxx" <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 9 Jun 2011 11:37:54 +0200

Hi, there's no definition for dead() perhaps just use a print statement.


-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Harmony Neil
Sent: Thursday, June 09, 2011 11:02
To: programmingblind@xxxxxxxxxxxxx
Subject: Another Python Indentation Problem

Sorry to bother people on the list again. OK, I've started making a mini text 
adventure thing and ran it through the command line as usual. I fixed an error 
that I really should have spotted anyway (a missing quotation mark), but it now 
says unexpected indentation on line 12. This is part of an if ... else 
statement and is at the same indentation as the if line a couple of lines 
above. I changed it anyway to see if it would make a difference and as I 
expected, it said invalid sintax at line 12, so I put it back to the way it was 
in the first place to see if anyone else has any suggestions?

I hate indentation at times ...

Attached is the file game.py

If anyone had any suggestions, feel free to reply here or offlist.

Thanks,

Harmony.

 

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: