![]() |
|
|
+ Search |
![]()
|
Feb 14th, 2007 15:40
Laudeci Oliveira, Andrew Donnellan,
The append method says:
append(...)
L.append(object) -- append object to end
So, to find the index of the new item you can use len(list)
Ex.
>>> a = ['a']
>>> a.append('b')
>>> print len(a)