append list of list to list code example
Example 1: append object python
>>> L = [1, 2, 3, 4]
>>> L.append(5)
>>> L
[1, 2, 3, 4, 5]
Example 2: add an element to list python
a=[8,5,6,1,7]
a.append(9)
>>> L = [1, 2, 3, 4]
>>> L.append(5)
>>> L
[1, 2, 3, 4, 5]
a=[8,5,6,1,7]
a.append(9)