I've to make this code where I have to take a customers order and then take a form of payment. For the card payment I was wondering if there was a way to have the input replaced with asterisks as they were typed. There is a line where I ask them to input their pin which is as follows:
pin=input("Insert your pin") #Asks user for pin number.
Let's say the pin is 1234. Instead of it showing 1234 as it is typed, is there a way to make it go ****
when it's being typed. I've tried using .getpass();
whether or not I've used it right I don't know. Any help would be appreciated.