First solution in Clear category for Long Repeat by
while (ihowmany): #if the next letter is different, it's end of our substring
howmany=many #so we have to check if it's longer than the last substring
if (many>howmany and len(line)>0):
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
assert long_repeat('sdsffffse') == 4, "First"
assert long_repeat('ddvvrwwwrggg') == 3, "Second"
print('"Run" is good. How is "Check"?')
Nov. 20, 2017