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
Output appears here