list of elements python code example Example 1: how to make a list in python list = [1, 2, 4, 5, 6] Example 2: how to make a list in python list = [1, 2, 3, 4, 5, 6, 7]