KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I was just reading through "Learning Python" by Mark Lutz and came across this code sample : >>> L = ['grail'] >>> L.append(L) >>> L ['grail', [...]] It was identified as a cyclic data structure. So I was wondering, and here is my question: What is a 'cyclic data structure' used for in real life programming? There seems to be a little confusion, which i think stems from the very brief code sample... here's a few more lines using the same object L >>> L[0] 'grail' >>> L[1][0] 'grail' >>> L[1][1][0] 'grail'
Tags (comma-separated)
Save Edits
Cancel