[Tutor] AD&D Character generator problems

alan.gauld@bt.com alan.gauld@bt.com
Tue, 4 Apr 2000 17:28:28 +0100


> def OkStats():
>     goodstats= raw_input("Re-roll? ")
>     if goodstats == 'yes' or 'y':

if goodstats == 'yes' or goodstats == 'y':

What you did is checked whether 'y' is 
true - which being non zero it always is...

Try putting parens round it to make it 
more obvious...

if (goodstats == 'yes') or ('y'): ...

HTH,

Alan G.