LearnPy Hub
← Regular Expressions problems
Easy

Only Digits With fullmatch

Read a line and print Valid if it is made of one or more digits and nothing else, using re.fullmatch(r'\d+', text), otherwise Invalid.

Input

One line.

Output

Valid or Invalid.

Sample 1

Input
12345
Output
Valid

Sample 2

Input
12a45
Output
Invalid
solution.py
Output appears here
Only Digits With fullmatch · Python practice problem · LearnPy Hub