The code below is a password program that hides your input. It works on repl.it, an online compiler, but not on Visual Studio. The warning states: GetPassWarning: Can not control echo on the terminal. Warning - Password input may be echoed.
import getpass
password= getpass.getpass("Enter Password ")
correctPassword= 'Lucas'
while password != correctPassword:
password = getpass.getpass("Enter Password Again ")
print("Success")
I am not sure why this is coming up. Is there anyway I can hide password input?