Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Struggling with nested list
#4
(Jul-09-2020, 05:18 PM)gr3yali3n Wrote: Is that what exits[loc][direction] is, Processing of a nested list?

exits is a list with 2 (variable) dimensions. Zero based.
exits[loc][direction] means (in exits) element number "loc" , and of that element the dictionary item that corresponds with "direction" .

Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
Struggling with nested list - by gr3yali3n - Jul-09-2020, 06:50 AM
RE: Struggling with nested list - by DPaul - Jul-09-2020, 06:54 AM
RE: Struggling with nested list - by gr3yali3n - Jul-09-2020, 05:18 PM
RE: Struggling with nested list - by DPaul - Jul-09-2020, 05:30 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,395 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
  Struggling with Juggling JSON Data SamWatt 7 3,227 May-09-2022, 02:49 AM
Last Post: snippsat
  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,980 Jan-23-2022, 07:20 PM
Last Post: menator01
  Looping through nested elements and updating the original list Alex_James 3 2,891 Aug-19-2021, 12:05 PM
Last Post: Alex_James
  Syntax errors: Struggling to setup enviroment and load packages AH56 5 3,865 Jun-30-2021, 01:01 PM
Last Post: AH56
  shuffle a nested list giorgosmarga 11 14,529 Nov-12-2020, 07:04 PM
Last Post: perfringo
  Struggling for the past hour to define function and call it back godlyredwall 2 3,040 Oct-29-2020, 02:45 PM
Last Post: deanhystad
Question Save list with nested list into CSV SpongeB0B 1 7,307 Oct-12-2020, 07:26 AM
Last Post: bowlofred

Forum Jump:

User Panel Messages

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