LearnPy Hub
← Regular Expressions problems
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
solution.py
Output appears here
Hide the Digits · Python practice problem · LearnPy Hub