What is difference between tuple and list in python?

Python

Could someone tell me what is the difference between Tuple and List in Python?


If you want to unleash your potential in this competitive field, please visit the Python course page for more information, where you can find the Python tutorials and Python frequently asked interview questions and answers as well.

1
Answers

Replies

A list is the term that allows storing a sequence of objects in a specific order, allowing you to index the List or iterate over the list. The list is mutable, allowing you to apply the modifications after creation.


A tuple in python is similar to a list, however, it is immutable. Also, there exists a semantic difference between a list and the tuple.

 
 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.
WhatsApp
To Top