KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What's the easiest way to use a linked list in Python? In Scheme, a linked list is defined simply by '(1 2 3 4 5) . Python's lists, [1, 2, 3, 4, 5] , and tuples, (1, 2, 3, 4, 5) , are not, in fact, linked lists, and linked lists have some nice properties such as constant-time concatenation, and being able to reference separate parts of them. Make them immutable and they are really easy to work with!
Tags (comma-separated)
Save Edits
Cancel