OOleksii PitenkoПопробуй так, возможно там тип был не дикт return dict(Counter(text).most_common).items()22:54