LearnPy Hub
← Regular Expressions problems
Easy

Valid Postcode

A Bangladeshi postcode is exactly 4 digits. Print Valid or Invalid using re.fullmatch.

Input

One line.

Output

Valid or Invalid.

Sample 1

Input
1205
Output
Valid

Sample 2

Input
12345
Output
Invalid
solution.py
Output appears here
Valid Postcode · Python practice problem · LearnPy Hub