how to make a lis in python code example
Example 1: how to make a python list
listName = [1,2,3,4]
Example 2: python list and list
a = ['apple', 'banana', 'pear']
b = ['fridge', 'stove', 'banana']
a & b == ['banana'] #True
Example 3: how to make a lis in python
myList = [1, 'banana', 2.0]
# in a list you can store any type of data in any order