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