Tuple in Python

software-engineering
python
tuple
(Team) #1

Tuples are used to hold together multiple objects. Think of them as similar to lists, but without the extensive functionality that the list class gives you. One major feature of tuples is that they are immutable like strings i.e. you cannot modify tuples. It allows duplicate members i.e. (1, 1) is allowed.

Read this article to understand Tuple in Python in depth

Have a doubt or thought? Join the discussion now


This is a companion discussion topic for the original entry at http://iq.opengenus.org/tuple-python/