I need help with a password issue.

I'm trying to create a simple password program, but the problem I am having is that I cannot replace the input with '\*'s without importing anything.

Does anyone have any solutions?