Given a string S, find the maximum consecutive repeating character in the string.
1 2 3 4 5 6 7
from collections import Counter s=raw_input() coun=Counter(s) for letter,count in coun.most_common(1): lis= [letter,count] print lis[0]
Apr 6, 2017 • Rahul