pyassistant

Same Length Strings

Given a list of strings, write a function to return a new list containing the strings that have the same length as the first string in the input list.

Example:

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

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.