mylist = [] mylist.append(1) mylist.append(2) for item in mylist: print(item) # prints out 1,2
See: Lists