Program Console Vignaankosh.com
Execution Panel
Console is empty.
Superset checking (A ⊇ B) is an interactive PYTHON dry run visualizer from the Sets 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.
# Superset checking
A = {1, 2, 3, 4, 5}
B = {1, 2, 3}
C = {1, 2, 6}
print("Set A:", A)
print("Set B:", B)
print("Set C:", C)
# Method 1: issuperset() method
print(f"\nA is superset of B: {A.issuperset(B)}")
print(f"A is superset of C: {A.issuperset(C)}")
# Method 2: >= operator
print(f"A >= B: {A >= B}")
print(f"A >= C: {A >= C}")
# Proper superset (strict) using >
print(f"\nA > B (proper superset): {A > B}")
print(f"A > A (proper superset?): {A > A}")