List in python:
List is a data structure in python which is used to store multiple elements. These elements can be any other data structure.
Objects in Python:
Objects are instances of classes in python.
List of objects is a list that stores multiple objects.
Creating a list of objects:
listName = list()
Adding objects to the list:
listName.append(object)
Program to illustrate the working of list of objects in Python
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer