def process_line(line: str) -> dict:
    """Assign values from lines of a data file to keys in a dictionary."""
    name, age, state = line.strip().split(",")
    result = {"name": name, "age": int(age), "state": state}
    return result