Easy
Hide the Digits
Replace every digit in the line with
# using re.sub.Input
One line.
Output
One line.
Sample 1
Input
Card 4321-8765
Output
Card ####-####
Sample 2
Input
no digits
Output
no digits
Output appears here# using re.sub.One line.
One line.
Card 4321-8765
Card ####-####
no digits
no digits
Output appears here