Program Console Vignaankosh.com
Execution Panel
Console is empty.
Create a tuple and display elements 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.
# Create a tuple using parentheses
fruits = ("Apple", "Banana", "Cherry", "Mango", "Orange")
print("Full tuple:", fruits)
# Create tuple using tuple() constructor
numbers = tuple([10, 20, 30, 40, 50])
print("Using tuple():", numbers)
# Display elements one by one
print("\nElements using for loop:")
for item in fruits:
print(f" • {item}")
# Display with index
print("\nWith index positions:")
for i in range(len(fruits)):
print(f" Index {i}: {fruits[i]}")