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