def valid_byr(byr):
    """byr (Birth Year) - four digits; at least 1920 and at most 2002."""
    if len(byr) == 4 and int(byr) >= 1920 and int(byr) <= 2002:
        return True
    else:
        return False