Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sorting Arrays in Ascending
#4
There are MANY ways to do this but you haven't given us any idea what your actual goal is. There are no base "arrays" in Python. You have shown us 9 python lists, each with 1 float number in them. If you want to sort them, put them all into a list and use the built-in sorted() or list.sort() function.

https://docs.python.org/2/howto/sorting....rtinghowto
"So, brave knights, if you do doubt your courage or your strength, come no further, for death awaits you all with nasty, big, pointy teeth!" - Tim the Enchanter
Reply


Messages In This Thread
Sorting Arrays in Ascending - by vino689 - Jan-10-2020, 05:40 PM
RE: Sorting Arrays in Ascending - by ndc85430 - Jan-10-2020, 06:35 PM
RE: Sorting Arrays in Ascending - by micseydel - Jan-10-2020, 06:45 PM
RE: Sorting Arrays in Ascending - by Marbelous - Jan-10-2020, 06:47 PM
RE: Sorting Arrays in Ascending - by vino689 - Jan-12-2020, 07:42 AM
RE: Sorting Arrays in Ascending - by perfringo - Jan-10-2020, 07:35 PM
RE: Sorting Arrays in Ascending - by micseydel - Jan-10-2020, 09:25 PM
RE: Sorting Arrays in Ascending - by vino689 - Jan-11-2020, 06:21 PM
RE: Sorting Arrays in Ascending - by vino689 - Jan-11-2020, 08:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adding an ascending number [SOLVED] AlphaInc 3 2,329 Jul-11-2021, 10:13 AM
Last Post: perfringo
  Sorting a copied list is also sorting the original list ? SN_YAZER 3 3,222 Apr-11-2019, 05:10 PM
Last Post: SN_YAZER

Forum Jump:

User Panel Messages

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