'use getpass in visual studio code
I am using this code:
import getpass
pwd = getpass.getpass(prompt = 'Please enter password:')
Unfortunatley I cannot enter anything in the terminal. Am I missing something?
Solution 1:[1]
The principle of this function is that you can enter text as in a classic input but it is not displayed on the screen.
If you try to add print(pwd)
and hit some keys at the time of input, it should return exactly what you typed
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | crazycat256 |