List append(x) : List Append « List « Python






List append(x)

List append(x)
#     Add an item to the end of the list; equivalent to a[len(a):] = [x]. 

a = [66.25, 333, 333, 1, 1234.5]

a.append(333)
print a

           
       








Related examples in the same category

1.Adding Elements to ListsAdding Elements to Lists
2.Append element to a listAppend element to a list
3.List: The Difference Between Extend and AppendList: The Difference Between Extend and Append