RE: Another Python Indentation Problem

Ok, we have quite a few problems here.
1. import exit not exits.
2. line 12 exit() is at the left margin and not in line with the statement.
3. there's no main() function that will ensure the program executes.

Please feel free to contact me off-list for help.

Kindest
Eml: johannesg@xxxxxxxxx
Skype: johannesgrib
Please mention you are from the blind programming list.


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

Thanks for the idea, but still says unexpected indent ... weird. That's how
its showing in the example.

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Johannes Grib
Sent: 09 June 2011 10:38
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Another Python Indentation Problem

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 
http://www.freelists.org/list/programmingblind

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

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

Other related posts: