View Single Post
Old 01-18-2007, 12:29 PM   #2 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I think you can just naturally nest lists
Code:
Python 2.4 (#1, Mar 22 2005, 21:42:42)
>>> a = [1,[2,3],4]
>>> a
[1, [2, 3], 4]
>>> a[2]
4
>>> a[1][1]
3
>>> a.append(5)
>>> a[3]
5
>>> a
[1, [2, 3], 4, 5]
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote