Quick actions

cmd+k|ctrl+k

Navigation

Languages

is vs ==

Snippet info

Language

Python

Visibility

public

Author

bensruthy

Created

2026-03-15T13:36:10.071666Z

Updated

2026-03-15T13:36:24.352507Z

a=10
b=10
print (a==b)
print (a is b)


x=[1,2,3]
y=[1,2,3]
print(x==y)
print (x is y)
INFO