This content originally appeared on DEV Community and was authored by Arun
names = [“Eren”, “luffy”, “goku”]
print(names.sort())
Output: None
Why the sort method can’t sort the list?
This content originally appeared on DEV Community and was authored by Arun