pyassistant

String Sorting by Last Letter

Given a list of strings, return a new list where the strings are sorted in increasing order by their last letter.

Example:

Input:
['banana', 'apple', 'cherry', 'date']
Output:
['apple', 'cherry', 'banana', 'date']

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.