(Feb-09-2018, 06:33 AM)metulburr Wrote: what have you tried so far?I have found out how to find how many times 1 letter appears in a code:
def longestRepeat(x, y): count = 0 longest = 0 i = x while i in y: count+=1 i = x*(count+1) return countBUT I cannot figure out how to have it search through a given string on it's own for the most common.