Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Built-in Tuple Functions in Python
Python includes the following tuple functions −
| Sr.No | Function with Description |
|---|---|
| 1 |
cmp(tuple1, tuple2) Compares elements of both tuples. |
| 2 |
len(tuple) Gives the total length of the tuple. |
| 3 |
max(tuple) Returns item from the tuple with max value. |
| 4 |
min(tuple) Returns item from the tuple with min value. |
| 5 |
tuple(seq) Converts a list into tuple. |
Advertisements
