List in Python

Lists are used to store multiple items in a single variable. A list is created by placing all the items (elements) inside square brackets¬†[], separated by commas. It can have any number of items and they may be of different types (integer, float, string etc.). Examples of Lists There are…