pyassistant

Strings Ending with 's'

Given a list of strings, write a function to return the strings that have a length of 3 or more and end with the letter 's'.

Example:

Input:
['dogs', 'cats', 'birds', 'elephants', 'snakes']
Output:
['dogs', 'cats', 'birds', 'snakes']

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.