items = ['a', 'b', 'c']
from itertools import combinations
p = len([*combinations(items, 2)])
print(p)
Post #1373
2.17K
Что выведет код?