from collections import Counter
l1 = ["a", "a", "b", "c"]
l2 = ["a", "b", "b", "c"]
c1 = Counter(l1)
c2 = Counter(l2)
new_c1 = c1 + c2
new_c2 = c1 - c2
mc1 = new_c1.most_common(1)
mc2 = new_c2.most_common(1)
print(mc1[0][1], mc2[0][1])
Post #1107
2.46K
Что выведет код?