(Solved) : Need Write Function Meets Following Requirements Python Function Name Removetriplicatelett Q41386899 . . .

I need to write a function that meets the following requirementsin Python.

Function name: removeTriplicateLetters()

Number of parameters: 1 string parameter where all letters arelowercase

Return value: return the modified string

Goal: Iterate over the string and remove any triplicated letters(e.g. “byeee mmmy friiiennd” becomes “bye my friennd”). You mayassume any immediate following same letters are a triplicate.

Expert Answer


Answer to I need to write a function that meets the following requirements in Python. Function name: removeTriplicateLetters() Num…