sets
Write common_and_unique(a, b) returning a tuple (common, only_a) where common is a sorted list of values in both lists and only_a is a sorted list of values only in a.
Guest mode · solve history stays on this device; code isn’t saved. Sign in to save future work
solution.py
loading editor…
Run your code to see its output, or check your solution to grade it.