s1 = "aalkkaazylkkkkkkkasdakkkkkkkkk"k=0c=0for i in s1: if i=='k': c += 1 else: c=0 if c > k: k=cprint(k)
aalkkaaylkkkkkkkkkasddkkkrftgkkkkk
9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!