0% found this document useful (0 votes)
14 views1 page

Tuple Functions Overview

The document outlines various functions that can be used with tuples in Python. It includes functions such as len, min, max, sum, index, count, and sorted, along with their formats. Each function serves a specific purpose, such as determining the length, finding minimum or maximum values, and creating tuples from different data types.

Uploaded by

yuvalvermauv
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

Tuple Functions Overview

The document outlines various functions that can be used with tuples in Python. It includes functions such as len, min, max, sum, index, count, and sorted, along with their formats. Each function serves a specific purpose, such as determining the length, finding minimum or maximum values, and creating tuples from different data types.

Uploaded by

yuvalvermauv
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

FUNCTIONS IN TUPLES :

Name Function Format

len - tells length of a tuple


len(t1)
min - displays min element of tuple
min(t1)
max - displays max element of tuple
max(t1)
sum - displays sum of elements in a tuple
sum(t1)
index - returns lowest index of a substring
[Link]()
count - tells occurences of a particular item
[Link]()
sorted - sorts items in ascending/descending order
sorted(t1)/sorted(t1,reverse=True)
sequence - creates tuple from any type
tuple()

You might also like