.append on a list python code example Example 1: append python it=[] for i in range(10): it.append(i) Example 2: opython append list list.append(item)