LearnPy Hub
← Regular Expressions problems
Hard

Mask Emails

Replace the user part of each email with its first letter followed by ***, keeping the domain: mim@diu.edu.bd becomes m***@diu.edu.bd.

Input

One line.

Output

One line.

Sample 1

Input
write to mim@diu.edu.bd or rafi.k@ex.com
Output
write to m***@diu.edu.bd or r***@ex.com

Sample 2

Input
no email
Output
no email
solution.py
Output appears here
Mask Emails · Python practice problem · LearnPy Hub