pass = input("Enter your password:") code example Example: how to create password input in html <input type="password" name=""value="">