Why None?

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

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


Print Share Comment Cite Upload Translate Updates
APA

Arun | Sciencx (2025-03-15T19:41:37+00:00) Why None?. Retrieved from https://www.scien.cx/2025/03/15/why-none/

MLA
" » Why None?." Arun | Sciencx - Saturday March 15, 2025, https://www.scien.cx/2025/03/15/why-none/
HARVARD
Arun | Sciencx Saturday March 15, 2025 » Why None?., viewed ,<https://www.scien.cx/2025/03/15/why-none/>
VANCOUVER
Arun | Sciencx - » Why None?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/03/15/why-none/
CHICAGO
" » Why None?." Arun | Sciencx - Accessed . https://www.scien.cx/2025/03/15/why-none/
IEEE
" » Why None?." Arun | Sciencx [Online]. Available: https://www.scien.cx/2025/03/15/why-none/. [Accessed: ]
rf:citation
» Why None? | Arun | Sciencx | https://www.scien.cx/2025/03/15/why-none/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.