adding only the first 3 numbers of a lsit to another list python code example Example: how to add element in list list = [] list.append(var)