teams maps team → list of members. Write member_team(teams) returning member → team with a nested dict comprehension.
member_team({'red': ['Asha', 'Om'], 'blue': ['Ravi']})
→ {'Asha': 'red', 'Om': 'red', 'Ravi': 'blue'}member_team({})
→ {}Submit runs 3 tests, including hidden edge cases.
Run your code to see the output here.