A list is just a dynamically sized array that is used to have multiple sets of elements in a single variable. To create a list in Python, you can just use [] for declaring the list.
For instance:
list1=[‘ele1’, 1.9,2,True]
print(list1)
Lists have the capability of storing multiple data types in a single variable as you can see in the above example, the list stores string type, integer type, float type, and boolean type in a single variable, list1.
If you are looking for an online course to learn Python, I recommend this Python Certification program by Intellipaat.