different types of lists python code example
Example 1: python list and list
a = ['apple', 'banana', 'pear']
b = ['fridge', 'stove', 'banana']
a & b == ['banana'] #True
Example 2: list in python
#list is data structure
#used to store different types of data at same place
list = ['this is str', 12, 12.2, True]