Computer Science, asked by Riyashhhhh9411, 8 months ago

Which function gives the total length of the tuple.

Answers

Answered by Anonymous
4

Answer:

Len(tuple) function gives the total length of the tuple.

Explanation:

follow MAH ❣️❣️

Answered by letmeanswer12
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