I know this is totally off-the-wall, but what am I doing wrong here?  I am 
using Python 2.5, and I am just learning...please be kind!


>>> aList = [2,3]
>>> bList = [5,7,9]
>>> aList.append(bList)
>>> print aList
[2, 3, [5, 7, 9]]
>>> print aList [1] [2]
Traceback (most recent call last):
  File "<pyshell#40>", line 1, in <module>
    print aList [1] [2]
TypeError: 'int' object is unsubscriptable
>>> print aList [0] [1]
Traceback (most recent call last):
  File "<pyshell#41>", line 1, in <module>
    print aList [0] [1]
TypeError: 'int' object is unsubscriptable
>>>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to