Updated 2022-05-22 0
Viewed 12 times
0

I have been given homework to treat. And in part there is a list like this:

list1 = [crepeatedbeeqawearfgdffhrkabjbmkvbjfubfchfbssdfdflvbdaavdgaaaaaaaaafhaaamaarelkrsfrfbgbwer]

The task is to iterate through the list and find the highest times an alphabet is repeated consecutively example: "a" is repeated 9 times in the list (The highest consecutive repetition).

How can I code this in Python? I really need help?

🔴 No definitive solution yet