# validate code with simple regex
# Basic regex tasks. Write a function that takes in a numeric code of any length. The function should check if the code begins with 1, 2, or 3 and return true if so. Return false otherwise.

# You can assume the input will always be a number.

def validate_code(code):
    n = str(code)
    for x in n: 
        if x == '1': 
            return True
        if x == '2':
            return True
        if x == '3':
            return True
        else:
            return False