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?
Mar 22, 2025 0
Mar 22, 2025 0
Mar 22, 2025 0
Mar 22, 2025 0
Mar 22, 2025 0
Mar 22, 2025 0
Or register with email
names = ["Eren", "luffy", "goku"]
print(names.sort())
Output: None
Why the sort method can't sort the list?
Jan 28, 2025 0
Jan 26, 2025 0
Mar 1, 2025 0
Feb 24, 2025 0
Feb 24, 2025 0
Jan 30, 2025 1
Jan 29, 2025 0
Jan 28, 2025 0
This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies.