pyassistant

Filter Strings by Length

Given a list of strings, return a new list containing only the strings with length greater than or equal to 5.

Example:

Input:
['apple', 'banana', 'kiwi', 'orange', 'strawberry']
Output:
['banana', 'orange', 'strawberry']

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.