Le Wed, 22 Apr 2009 19:40:51 -0700,
"WM." s'exprima ainsi:
> Well, Kent was right, it was an indent error, but 'way high in the
> program. I was so catching commas that I got sloppy at an indent
> change. sorry guys.
> ___
> Tutor maillist - Tutor@
Well, Kent was right, it was an indent error, but 'way high in the
program. I was so catching commas that I got sloppy at an indent
change. sorry guys.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
"WM." wrote
def DisplayBoard(HANGMAPIX, MissedLetters, CorrectLetters, SecretWord):
for Letter in MissedLetters:
Blanks = '_' * len(SecretWord)
for i in range(len(SecretWord)):
for Letters in Blanks:
MissedLetters = ''
while True:#151
DisplayBo
Kent Johnson wrote:
On Wed, Apr 22, 2009 at 2:57 PM, WM. wrote:
Using Windows XP, Python 2.6 & Al Sweigart's "Invent Your Own...", I keyed
in the Hangman Program. So far as I can tell it is totally proofed out.
Still, I get an error message which makes no sense to me.
def Display
On Wed, Apr 22, 2009 at 2:57 PM, WM. wrote:
> Using Windows XP, Python 2.6 & Al Sweigart's "Invent Your Own...", I keyed
> in the Hangman Program. So far as I can tell it is totally proofed out.
> Still, I get an error message which makes no sense to me.
> def DisplayBoard(HANGMAPIX, MissedLette
Le Wed, 22 Apr 2009 11:57:13 -0700,
"WM." s'exprima ainsi:
[...]
> def DisplayBoard(HANGMAPIX, MissedLetters, CorrectLetters, SecretWord):
> print HANGMANPIX[len(MissedLetters)]
> print
>
> print 'MissedLetters:',
> for Letter in MissedLetters:
> print Letter,
> p
Using Windows XP, Python 2.6 & Al Sweigart's "Invent Your Own...", I
keyed in the Hangman Program. So far as I can tell it is totally proofed
out. Still, I get an error message which makes no sense to me.
Herewith, the program, followed by the error message.
# CONSTANTS are all CAPS.
# vari