Method Name:
append
Method Signature:
append(element_in)
Method Overview:
- The append() method adds an element to the end of a Python list object.
Parameters:
element_in: The element to be added to the Python list
Return Value:
None
Example:
# Example Python program that appends # Create a list with few elements # Append an element to the end of the list |
Output:
Iron ores: ['Magnetite', 'Hematite', 'Limonite', 'Siderite'] |