Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
shuffle a nested list
#6
(Nov-12-2020, 04:53 PM)giorgosmarga Wrote: You are right i didnt give much details.I updated my post

Never change original post, explain and clarify in subsequent comments. Otherwise thread doesn't make sense for readers.

I don't get how this code can produce: "every sublist has the same order". There are no sublists, there are None-s:

>>> emptylist = []
>>> emptylist.append(random.shuffle([1, 2, 3]))
>>> emptylist
[None]
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
shuffle a nested list - by giorgosmarga - Nov-12-2020, 04:09 PM
RE: shuffle a nested list - by DPaul - Nov-12-2020, 04:22 PM
RE: shuffle a nested list - by giorgosmarga - Nov-12-2020, 04:29 PM
RE: shuffle a nested list - by perfringo - Nov-12-2020, 04:42 PM
RE: shuffle a nested list - by giorgosmarga - Nov-12-2020, 04:53 PM
RE: shuffle a nested list - by perfringo - Nov-12-2020, 05:03 PM
RE: shuffle a nested list - by giorgosmarga - Nov-12-2020, 05:09 PM
RE: shuffle a nested list - by giorgosmarga - Nov-12-2020, 05:12 PM
RE: shuffle a nested list - by perfringo - Nov-12-2020, 05:36 PM
RE: shuffle a nested list - by giorgosmarga - Nov-12-2020, 05:43 PM
RE: shuffle a nested list - by perfringo - Nov-12-2020, 07:04 PM
RE: shuffle a nested list - by deanhystad - Nov-12-2020, 06:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What is a faster way to deep copy a nested list without using .deepcopy()? Shervin_Ataeian 1 1,401 Oct-13-2024, 01:28 PM
Last Post: Pedroski55
  List all possibilities of a nested-list by flattened lists sparkt 1 1,760 Feb-23-2023, 02:21 PM
Last Post: sparkt
  Updating nested dict list keys tbaror 2 1,916 Feb-09-2022, 09:37 AM
Last Post: tbaror
  Python Program to Find the Total Sum of a Nested List vlearner 8 7,986 Jan-23-2022, 07:20 PM
Last Post: menator01
  Looping through nested elements and updating the original list Alex_James 3 2,892 Aug-19-2021, 12:05 PM
Last Post: Alex_James
Question Save list with nested list into CSV SpongeB0B 1 7,309 Oct-12-2020, 07:26 AM
Last Post: bowlofred
  Struggling with nested list gr3yali3n 3 3,154 Jul-09-2020, 05:30 PM
Last Post: DPaul
  Nested Dictionary/List tonybrown3 5 4,223 May-08-2020, 01:27 AM
Last Post: tonybrown3
  Help removing asterisk item in a nested list. bmcguire 3 3,625 Apr-06-2020, 02:35 PM
Last Post: snippsat
  Make nested system directories based on an unsorted list? koebi 0 2,024 Mar-25-2020, 01:14 PM
Last Post: koebi

Forum Jump:

User Panel Messages

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