Identity Operators (is, is not) Dry Run in PYTHON

Identity Operators (is, is not) is an interactive PYTHON dry run visualizer from the Io 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.

Identity Operators (is, is not) Program Code

# Demonstrating identity operators
a = [1, 2, 3]
b = a
c = [1, 2, 3]

print(f"a = {a}")
print(f"b = {b}")
print(f"c = {c}")
print(f"\na is b: {a is b}")  # True - same object
print(f"a is c: {a is c}")  # False - different objects
print(f"a is not c: {a is not c}")  # True
print(f"a == c: {a == c}")  # True - same values

View the complete Io programs page.

Program Console Identity Operators (is, is not) Topic: PYTHON Vignaankosh.com
Execution Panel
Step 0/0
Console is empty.