I am trying to figure out how to prompt for a password, and have the users input echoed back as asterisks (********)
********
So recently, I took on the project
I think this way is very simple and effective
import sys import msvcrt passwor = '' while True: x = msvcrt.getch() if x == '\r': break sys.stdout.write('*') passwor +=x print '\n'+passwor