pyassistant

Filter Strings by Length

Given a list of strings, write a function to return a new list containing only the strings that have a length of 3 or more.

Example:

Input:
['hello', 'python', 'is', 'awesome', '!', 'coding']
Output:
['hello', 'python', 'awesome', 'coding']

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.