I am trying to write a program that orders a list of strings based on the last character in the item.
[\"Tiger 6\", \"Shark 4\", \"Cyborg 8\"] are how my li
[\"Tiger 6\", \"Shark 4\", \"Cyborg 8\"]
def last_letter(word): return word[::-1] mylst = ["Tiger 6", "Shark 4", "Cyborg 8"] sorted(mylst, key=last_letter)