import collections
RawString = input()
MostCommon = collections.Counter(list(RawString)).most_common()[0]
print('Most common symbol: {0}; finded {1} times'.format(MostCommon[0], MostCommon[1]))
Объяснение:
import collections
RawString = input()
MostCommon = collections.Counter(list(RawString)).most_common()[0]
print('Most common symbol: {0}; finded {1} times'.format(MostCommon[0], MostCommon[1]))
Объяснение: