pyassistant

Consecutive Repeated Characters

Given a list of strings, write a function to return the strings that have at least one character repeated consecutively at least 3 times.

Example:

Input:
['hello', 'goodbye', 'success', 'apple', 'banana']
Output:
['hello', 'success']

Make sure you return your solution, don't print!

AI

Bot

Trying to solve my challenge? Ask if you must, or press the purple button so I can analyze your code.