how to create a new list in a list in python code example
Example 1: how to make a list in python
list = [1, 2, 4, 5, 6]
Example 2: list inside a list in python
# it appends a list into a list
list1 = [1,2,3,4,5]
list1.append([6,7])
# ouput = [1, 2, 3, 4, 5, [6, 7]]