1 pythonCopyl = [] # empty list
2l = [2, 4, 6, 8] # elements of same data type
3l = [2, 'Python', 1+2j] # elements of different data type
4
1#creating a list
2create_list = ["apple", "banana", "cherry"]
3print(create_list)
1list = ['list element', 'list element']
2# or t obe more effecient:
3import numpy #if you do not have numpy, do "pip install numpy"
4numpyarray = numpy.array(['array element', 'array element'])
5#a numpy array is faster than a standard list