---
title: "Difference between Lists and Tuples"  
description: "Difference between Lists and Tuples"  
author: "Anonymous User"  
published: 2018-06-12  
updated: 2018-06-12  
canonical: https://www.mindstick.com/forum/34509/difference-between-lists-and-tuples  
category: "python"  
tags: ["python", "computer science"]  
reading_time: 1 minute  

---

# Difference between Lists and Tuples

What is the [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between [Lists](https://www.mindstick.com/articles/126273/books-commonly-found-on-college-reading-lists) and [Tuples](https://www.mindstick.com/interview/34376/what-us-python-tuples)? give an example also.

## Replies

### Reply by Prakash nidhi Verma

## Lists:

The list is a datatype available in Python which can be written as a list in using comma ,separated items between square brackets[]. Important thing about a list is that items in a list need not be of the same type. they can be edited.

```
list1 = ['Mind','Stick', 2008, 2018]; list2 = [1, 2, 3, 4, 5 ];
list3 = ["a", "b", "c", "d"]
```

Many type of built-in list function are occurred-

* cmp(list1, list2)

*len(list)

*max(list)

*min(list)

*list(seq)

## Tuples:

Tuples are just like lists.The differences between tuples and lists are, the tuples cannot be changed unlike lists means can't be edited and tuples use parentheses,whereas lists use square brackets ().

```
tup1 = ('Mind', 'Stick', 2008, 2018); tup2 = (1, 2, 3, 4, 5 );
tup3 = "a", "b", "c", "d";
```

Many type of built-in Tuples function are occurred-

*cmp(tup1, tup2)

*len(tup)

*max(tup)

*min(tup)

*list(tup)

we can perform operation in Lists and Tuples both is shown below:

-Update

-Delete

-Indexing

I hope, It will be helpful for you.

Happy Coding :)


---

Original Source: https://www.mindstick.com/forum/34509/difference-between-lists-and-tuples

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
