Python Tuple


Tuple

A tuple is a collection which is ordered and unchangeable. In Python tuples are written with round brackets.

Example

Create a Tuple:

thistuple = ("apple", "banana", "cherry")
print(thistuple)
Try it Yourself »


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.