Answer:
import re
def secret_pin_digit( ):
user = input("Please enter a line of text: ")
search_values = re.findall( "\d", user )
for item in search_values:
if int( item ) == "NAN":
user.replace("item", "x")
print( user )
Step-by-step explanation:
The python function program above prompts the user for a string specifying the user id, username and the user pin. The digits in the string are replaced with an "x". This is used to hide the pin of a user