Set

Run Settings
LanguagePython
Language Version
Run Command
s = {1,2,3,4,5,1,'a',1,3,3,3,4,'b',4,4,5,5,5} print(s,type(s)) a = "hello world" print(set(a)) ### output is in random order a = {1,2,3,4} b = {3,4,5,6} print () print (a & b) # intersection print (a | b) # join, +, union print (a - b) # from a remove intersection print (a ^ b) # xor
Editor Settings
Theme
Key bindings
Full width
Lines