def modify_expenses(w: Worker.Worker) -> None: """ Prompt the user and modify recursively his expenses """ read: list = input("Enter the values to replace/add here:").lower().split() rdict = list_to_dict(read) w.add_expenses(rdict) print("Do you want to modify something else?") d = yes_or_no() if d: modify_expenses(w)