Two names can refer to the same object Dry Run in PYTHON

Two names can refer to the same object is an interactive PYTHON dry run visualizer from the Class 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.

Two names can refer to the same object Program Code

class Book:
    pass

book1 = Book()
book2 = book1

print("book1 class:", type(book1).__name__)
print("book1 and book2 same?", book1 is book2)

View the complete Class programs page.

Program Console Two names can refer to the same object Topic: PYTHON Vignaankosh.com
Execution Panel
Step 0/0
Console is empty.