# Passwords work with the input line widget, but are not hidden (like IDLE) import getpass reply = getpass.getpass() print('Your password:', reply)