Python Basics
Python Advanced
Python Useful References
Python Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM
|
Python List append() Method
Description:
This method appends a passed obj into the existing list.
Syntax:
Parameters:
Here is the detail of parameters:
Return Value:
It returns none but updates existing list.
Example:
#!/usr/bin/python
aList = [123, 'xyz', 'zara', 'abc'];
aList.append( 2009 );
print "Updated List : ", aList;
|
This will produce following result:
Updated List : [123, 'xyz', 'zara', 'abc', 2009]
|
|
|
|