append object python code example Example: append object python >>> L = [1, 2, 3, 4] >>> L.append(5) >>> L [1, 2, 3, 4, 5]