A list is a Data structure in Python similar to an Array with dynamic size.

It is a collection of mutable homogenous sequences of objects.

Features

  • List elements are Dynamic in size

A list is a collection of elements with duplicate values, order is insertion order.

What are the advantages of Lists?

Sets store unique elements, and order is not preserved. Accessing the Set element to check whether an element exists or not is faster compared with List.