/Tuples-in-Python

Tuples are used to store multiple items in a single variable. Tuple is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Set, and Dictionary. A tuple is indexed, ordered , unchangeable , can contain duplicate values and all other data types including list , set , etc as their items. Tuples are written with round brackets .Here , practical demonstration of tuples is given (creation, accessing, slicing, deleting elements, functions, operations, tuple comprehensions, etc. ).

Primary LanguagePython

Tuples-in-Python

Tuples are used to store multiple items in a single variable. Tuple is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Set, and Dictionary. A tuple is indexed, ordered , unchangeable , can contain duplicate values and all other data types including list , set , etc as their items. Tuples are written with round brackets .Here , practical demonstration of tuples is given (creation, accessing, slicing, deleting elements, functions, operations, tuple comprehensions, etc. ).