how to assign int value to list in python code example Example: python how to put int into list numList=[1,2,3] num=4 numList.append(num)