Why None?

names = ["Eren", "luffy", "goku"] print(names.sort()) Output: None Why the sort method can't sort the list?

Mar 15, 2025 - 21:34
 0
Why None?

names = ["Eren", "luffy", "goku"]
print(names.sort())
Output: None
Why the sort method can't sort the list?