[Tutor] Contents of Tutor digest, help with Hangman program

Alan Gauld alan.gauld at btinternet.com
Mon Jul 19 19:46:24 CEST 2010

"John Palmer" <speederpython at gmail.com> wrote

Please trim your messages and not post the entire digest.

> Hi Alan thanks for the help. I did try the getpass module, I think I 
> used:
> getpass.getpass()
> This actually prompted the user to enter a password, which isn't 
> really what
> I want. Unless there's something i'm missing with this module?

like raw_input you can supply a prompt to getpass()

>>> import getpass as gp
>>> gp.getpass()
>>> gp.getpass("Number?")


Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list