Python Forum
list sort() function bring backs None
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
list sort() function bring backs None
#5
@newb

You really need to do more research into these simple questions. It is easy to google "Why does sort return None?", but I prefer reading the Python documentation because I always learn more. This talks about all the things you can do with lists, including sorting.
https://docs.python.org/3/library/stdtyp...#list.sort

That references a nice article all about sorting.
https://docs.python.org/3/howto/sorting....rtinghowto

You post a question here and you get your answer. Eventually. When you search the documentation you get the answer faster, and learn more that is related to your question.
ndc85430 likes this post
Reply


Messages In This Thread
RE: list sort() function bring backs None - by deanhystad - Mar-21-2022, 04:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sort a list of dictionaries by the only dictionary key Calab 2 653 Apr-29-2024, 04:38 PM
Last Post: Calab
  list.sort() returning None SmallCoder14 8 668 Mar-19-2024, 09:49 PM
Last Post: SmallCoder14
Photo a.sort() == b.sort() all the time 3lnyn0 1 1,354 Apr-19-2022, 06:50 PM
Last Post: Gribouillis
  [solved] Sort list paul18fr 5 2,949 Aug-18-2021, 06:34 AM
Last Post: naughtyCat
  Sort Function: <' not supported between instances of 'float' and 'tuple' quest 2 8,151 Apr-30-2021, 07:37 PM
Last Post: quest
  Sort List of Lists by Column Nju 1 12,322 Apr-13-2021, 11:59 PM
Last Post: bowlofred
  Combine Two Recursive Functions To Create One Recursive Selection Sort Function Jeremy7 12 7,524 Jan-17-2021, 03:02 AM
Last Post: Jeremy7
  How to sort os.walk list? Denial 6 11,719 Oct-10-2020, 05:28 AM
Last Post: Denial
  Cannot bring up anaconda in Docker image ErnestTBass 1 1,853 Aug-15-2020, 04:12 AM
Last Post: ndc85430
  I created a function that generate a list but the list is empty in a new .py file mrhopeedu 2 2,350 Oct-12-2019, 08:02 PM
Last Post: mrhopeedu

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020