Python Forum
How to create a linked list and call it?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create a linked list and call it?
#11
It is tough to argue what contitutes good design for a problem this contrived. In C you would have a Link and a List, and the list would do all the heavy lifting. In Python you would skip the link and use the built in list and the code would be 5 lines long.
Reply
#12
Less in APL
After all, you can program Conway's game of life in 1 line
life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}
Reply
#13
Thanks all. How to mark it as resolved? I don't see the toggle button next NewReply

The other wild thing is that although I subscribed the thread but no email notification received.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  for loops break when I call the list I'm looping through Radical 4 895 Sep-18-2023, 07:52 AM
Last Post: buran
  How do I call sys.argv list inside a function, from the CLI? billykid999 3 796 May-02-2023, 08:40 AM
Last Post: Gribouillis
  Delete strings from a list to create a new only number list Dvdscot 8 1,545 May-01-2023, 09:06 PM
Last Post: deanhystad
  [split] why can't i create a list of numbers (ints) with random.randrange() astral_travel 7 1,522 Oct-23-2022, 11:13 PM
Last Post: Pedroski55
  how to easily create a list of already existing item CompleteNewb 15 3,549 Jan-06-2022, 12:48 AM
Last Post: CompleteNewb
  About linked lists ManoEl 2 1,619 Oct-17-2021, 03:21 PM
Last Post: ManoEl
  Create SQLite columns from a list or tuple? snakes 6 8,715 May-04-2021, 12:06 PM
Last Post: snakes
  Create variable and list dynamically quest_ 12 4,417 Jan-26-2021, 07:14 PM
Last Post: quest_
  list call problem in generator function using iteration and recursive calls postta 1 1,915 Oct-24-2020, 09:33 PM
Last Post: bowlofred
  How to create and define in one line a 2D list of class objects in Python T2ioTD 1 2,041 Aug-14-2020, 12:37 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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