Which function gives the total length of the tuple.
Answers
Answered by
4
Answer:
Len(tuple) function gives the total length of the tuple.
Explanation:
follow MAH ❣️❣️
Answered by
0
Python method len() gives the length of the tuple.
Explanation:
The Python method len() is one of the Built-in function, used to find the length of an object. Python tuple method len() returns the number of elements within the tuple.
- Syntax - len(tuple)
- Parameters - (tuple) − The tuple for which number of elements to be counted.
- Return Value - Returns the number of tuple elements.
Example
- tuple1 = (123, 'xyz', 'word')
- print "Tuple length : ", len(tuple1)
- Tuple length : 3
Similar questions
Biology,
5 months ago
Psychology,
5 months ago
Hindi,
5 months ago
Computer Science,
11 months ago
Chemistry,
1 year ago