The getpass
module provides a platform-independent way to enter a password in
a command-line program, as Example 2-25 shows.
getpass(prompt)
prints the prompt
string, switches off keyboard echo, and reads a password. If the
prompt argument is omitted, it prints
"Password:
“.
getuser()
gets the current username,
if possible.
13.59.79.176