"""Example of Validating the Time Format of User Input (Part 2)"""

# Dependencies
import re

# Data
inputs = ['18:29', '23:55', '123', 'ab:de', '18:299', '99:99']

# One-Liner
input_ok = lambda x: re.fullmatch('([01][0-9]|2[0-3]):[0-5][0-9]', x) != None

# Result
for x in inputs:
    print(input_ok(x))