
Implement roster_changes, which compares two rosters of names and counts the distinct names that stayed, left and joined.
roster_changes(["Maya", "Odin", "Lea"], ["Lea", "Kofi", "Maya"])(2, 1, 1)roster_changes(["Tess", "Tess", "Bram"], ["Tess", "Ivo", "Ivo"])(1, 1, 1)roster_changes([], ["Nia"])(0, 0, 1)roster_changes.py
Run the tests to grade your code
Implement roster_changes, which compares two rosters of names and counts the distinct names that stayed, left and joined.
roster_changes(["Maya", "Odin", "Lea"], ["Lea", "Kofi", "Maya"])(2, 1, 1)roster_changes(["Tess", "Tess", "Bram"], ["Tess", "Ivo", "Ivo"])(1, 1, 1)roster_changes([], ["Nia"])(0, 0, 1)roster_changes.py
Run the tests to grade your code
Variables will appear here