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

names = ["Eren", "luffy", "goku"]
print(names.sort())
Output: None
Why the sort method can't sort the list?
Apr 1, 2025 0
Mar 2, 2025 0
Feb 24, 2025 0
Feb 16, 2025 0
Apr 11, 2025 0
Apr 10, 2025 0
Apr 8, 2025 0
Apr 7, 2025 0
Apr 10, 2025 0
Feb 11, 2025 0
Mar 14, 2025 0
Apr 2, 2025 0
Apr 2, 2025 0
Apr 1, 2025 0
Mar 25, 2025 0
Apr 9, 2025 0
Apr 7, 2025 0
Apr 4, 2025 0
Feb 11, 2025 0
Feb 11, 2025 0
Feb 11, 2025 0
Or register with email
names = ["Eren", "luffy", "goku"]
print(names.sort())
Output: None
Why the sort method can't sort the list?
Feb 11, 2025 0
Feb 11, 2025 0
Feb 11, 2025 0
Feb 11, 2025 0
Feb 11, 2025 0
This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies.