top of page
  • Subham Das

List in Python


List in Python is a class type and its object consists of collection of elements or items of different type in an ordered sequence. It is immutable in nature.

Lists are just like the arrays, declared in other languages. Lists need not be homogeneous always which makes it a most powerful tool in Python. A single list may contain Data Types like Integers, Strings, as well as Objects. Lists are also very useful for implementing stacks and queues. Lists are mutable, and hence, they can be altered even after their creation.


In Python, list is a type of container in Data Structures, which is used to store multiple data at the same time. Unlike Sets, the list in Python are ordered and have a definite count. The elements in a list are indexed according to a definite sequence and the indexing of a list is done with 0 being the first index. Each element in the list has its definite place in the list, which allows duplicating of elements in the list, with each element having its own distinct place and credibility.






76 views0 comments

Recent Posts

See All

Iterative Structure

If same type task is repeated by a structure till the condition is true, then it is called repetitive structure or loop. In Python two types of loop is available :- 1. while loop 2. for loop While loo

logo12.PNG
bottom of page