Python ProgrammingPython Programming

Python Tuples

In this tutorial you will learn, how to create tuples and access the values from them.

Python tuple is a sequence, which can store heterogeneous data types such as integers, floats, strings, lists, and dictionaries. Tuples are written with round brackets and individual objects within the tuple are separated by a comma. The two biggest differences between a tuple and a list are that a tuple is immutable and allows you to embed one tuple inside another.