how append works in python in list code example
Example 1: append to lists python
list = ['larry', 'curly', 'moe']
list.append('shemp')
list.insert(0, 'xxx')
list.extend(['yyy', 'zzz'])
print list
print list.index('curly')
list.remove('curly')
list.pop(1)
print list
Example 2: how to append to a list of lists in python
list_of_Lists = [[1,2,3],['hello','world'],[True,False,None]]
list_of_Lists.append([1,'hello',True])
ouput = [[1, 2, 3], ['hello', 'world'], [True, False, None], [1, 'hello', True]]