Answer to Question #3205 in Python for mukundareddy
Find the length of a tuple without using in-built function “len (tuple)”.
1
2011-06-21T06:42:08-0400
tuple, length = (1, "hello", 3.5), 0
for t in tuple: length += 1
print(length)
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
Python
Comments
Leave a comment