cmd+k|ctrl+k
cmd+k
ctrl+k
Navigation
Browse public code snippets.
Contact us about glot.io.
Read the privacy policy.
Manage snippets in your account.
Open your account settings.
Languages
Create a new Python snippet.
Create a new TypeScript snippet.
Create a new C snippet.
Create a new Rust snippet.
Create a new Java snippet.
Python
public
shirley
2025-10-15T13:30:10.90665Z
2025-10-15T13:30:50.270142Z
x = {1,2,3,4,5,6,5,2} y = {7,8,3,9,5,1} print(x & y) # interset print(x | y) # union print(x ^ y) #