def valid_eyr(eyr):
    """eyr (Expiration Year) - four digits; at least 2020 and at most 2030."""
    if len(eyr) == 4 and int(eyr) >= 2020 and int(eyr) <= 2030:
        return True
    else:
        return False