get_streaks
that takes a string and returns a list of tuples, each containing a character and the length of its consecutive streak in the string.words
list.get_streaks
function.s
.s
's streak length, or if s
's streak length is less than 3 and not equal to the word's streak length, the word is not stretchy. Continue to the next word.