List: list = [val1, val2]
1. Each element in the list is variable, orderly, and indexed.Variability means that you can add, delete, and modify each element. The elements in the list can be any object in Python.
(1) The method of creating lists:
One is to assign a set of values separated by commas directly by square brackets .
print(newlist) #[1, 2, 3]
Print (type (newlist)#View type: <class'list'>
2. Call list function to define.