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)
LATEST TUTORIALS
APPROVED BY CLIENTS