Medium
Valid Email (Simple)
Using
re.fullmatch with [\w.]+@[\w]+(\.[\w]+)+, print valid or invalid for each address until END.Input
Lines, then END.
Output
One line each.
Sample 1
Input
mim@diu.edu.bd bad@ END
Output
valid invalid
Sample 2
Input
a.b@c.com END
Output
valid
Output appears here