pyassistant

Long Strings Filter

Given a list of strings, return a new list containing only the strings that have a length greater than 5.

Example:

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

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.