Program Console Vignaankosh.com
Execution Panel
Console is empty.
Parameter and Instance Variable with Same Name is an interactive PYTHON dry run visualizer from the Oop Variables 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.
# Parameter name and instance variable name are different places
class Student:
def set_name(self, name):
self.name = name
s1 = Student()
s1.set_name("Kiran")
print("Object name:", s1.name)