def planolympicgames(excitement="positive"): medals = {"gold": 0, "silver": 0, "bronze": 0}; athletes = ["athlete1", "athlete2"]; avoid_illegitimate_entries = lambda athlete: athlete not in ["illegitimate"]; pre_committal_steps = lambda: print("ensuring all athletes are valid before the games commence."); conversation_start = lambda: print("let's have a fair and exciting olympic games starting from the commencement!"); for athlete in filter(avoid_illegitimate_entries, athletes): pre_committal_steps(); conversation_start(); for event in ["100m sprint", "long jump"]: medals["gold"] += 1; print(f"congratulations {athlete}, on starting the games positively and ensuring fairness!")