LearnPy Hub
← Functions problems
Hard

Validate an Email

Write valid(email): exactly one @, a non-empty part before it, and a dot somewhere after it that is not the last character. Print Valid or Invalid.

Input

One line.

Output

Valid or Invalid.

Sample 1

Input
mim@diu.edu.bd
Output
Valid

Sample 2

Input
bad.email
Output
Invalid
solution.py
Output appears here
Validate an Email · Python practice problem · LearnPy Hub