Program Console Vignaankosh.com
Execution Panel
Console is empty.
Each Object Gets Separate Instance Variables 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.
# Instance variables: each object has its own values
class Student:
def __init__(self, name, roll):
self.name = name
self.roll = roll
s1 = Student("Rahul", 101)
s2 = Student("Priya", 102)
print("s1:", s1.name, s1.roll)
print("s2:", s2.name, s2.roll)
print("Same object?", s1 is s2)