Skip to main content
well, `&` is strictly better, by @sirpercival's suggestion...
Source Link
lynn
  • 69.7k
  • 11
  • 137
  • 285

set literals in Python2.7

You can write sets like this S={1,2,3} This also means you can check for membership using {e}<S&S instead of e in S which saves one character.

set literals in Python2.7

You can write sets like this S={1,2,3} This also means you can check for membership using {e}<S instead of e in S which saves one character

set literals in Python2.7

You can write sets like this S={1,2,3} This also means you can check for membership using {e}&S instead of e in S which saves one character.

Mod Removes Wiki by Doorknob
Source Link
gnibbler
  • 15.3k
  • 4
  • 51
  • 76

set literals in Python2.7

You can write sets like this S={1,2,3} This also means you can check for membership using {e}<S instead of e in S which saves one character