def select_gender(gender: SexLiteral) -> int:
    """Choose an even number for Female and odd number for Male."""
    gender = 0 if gender.lower() == "f" else 1
    return random.choice(range(gender, 10, 2))
Choose an even number for Female and odd number for Male.
faker/providers/ssn/uk_UA/__init__.py