# Type password without left CTRL press key import maskpass # importing maskpass library # masking the password pwd = maskpass.advpass() print('Password : ', pwd)