Category Archives: Python Tuple

Python tuple data type is an ordered sequence of immutable data.

Python list, tuple and set belongs to sequence data type. As said earlier tuple is also one of the sequence data type therefore it supports operations like sequence Indexing, Slicing etc.

The basic difference between the list and tuple is that, List data type is mutable while the Tuple is immutable. It is possible to edit the list data over the course of time whereas it is not possible to modify the tuple since it is an immutable data type.

Tuple data type in python

Introduction to Tuple Data Type in python: In this article we are going learn python Tuple data type in detail. Topics which we are going to cover are, What is tuple data type, How to create tuple? How to use it and what are the methods available with tuple date type. Also the basic difference between python list and tuple. Out of many available python data types, Tuple, String and List data type have one common characteristic. All of these three data types belongs to Sequence

Read More