Quick actions

cmd+k|ctrl+k

Navigation

Languages

is vs ==

Snippet info

Language

Python

Visibility

public

Author

gustav

Created

2026-07-17T11:10:54.540448Z

Updated

2026-07-17T14:21:31.939282Z

print(True == 1)
print("" == 1)
print([] == 1)
print(10 == 10.0)
print([] == [])

#Is tends to be a little stricter : You're checking for the exact thing that you're looking for
#And == equality ckecks the value
INFO