Program Console Vignaankosh.com
Execution Panel
Console is empty.
Find length of tuple is an interactive PYTHON dry run visualizer from the Tuples programs section. Study the source code, then use the execution controls to follow each step, variable update, highlighted line, and console output.
This page provides a browser-based dry run with source-code highlighting, auto-scroll, voice narration controls, and execution output for learning the program step by step.
# Find length of tuple using len()
mixed = (10, "Hello", 3.14, True, [5, 6], (100, 200))
print("Tuple:", mixed)
length = len(mixed)
print(f"Length of tuple: {length}")
# Nested tuples - len counts outer elements only
nested = ((10, 20), (30, 40), (50, 60))
print(f"\nNested tuple: {nested}")
print(f"Length of nested tuple: {len(nested)}")
print(f"Length of first inner tuple: {len(nested[0])}")
# Manual counting using loop
count = 0
for item in mixed:
count += 1
print(f"\nManual count: {count}")