Name

.append()

Examples
a = ['carrot', 'cucumber']
print(a)  # Prints ['carrot', 'cucumber']
a.append('cabbage')
print(a)  # Prints ['carrot', 'cucumber', 'cabbage']
Description
Syntax
a.append(x)
Parameters
a
x
Related .insert()
.pop()
.reverse()
.index()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License