Getpass
import getpass
x = getpass.getpass("Enter Password")
PYTHON_NOT_SNAKE.py
import getpass
x = getpass.getpass("Enter Password")