Answer to Question #3205 in Python for mukundareddy
Question #3205
Find the length of a tuple without using in-built function “len (tuple)”.
Expert's answer
tuple, length = (1, "hello", 3.5), 0
for t in tuple: length += 1
print(length)
for t in tuple: length += 1
print(length)
Need a fast expert's response?
Submit orderand get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment