append()
Example:
list_a = []
list_a.append([1,2,3])
list_a.append({'a','b','c'})
list_a
[[1, 2, 3], {'b', 'a', 'c'}]
len(list_a)
2
list elements can be different type.
Example:
list_a = []
list_a.append([1,2,3])
list_a.append({'a','b','c'})
list_a
[[1, 2, 3], {'b', 'a', 'c'}]
len(list_a)
2
list elements can be different type.