Skip to content

Instantly share code, notes, and snippets.

@pars3c
Last active February 19, 2020 08:20
Show Gist options
  • Save pars3c/e094edd8ae8bdc96b7e59c31bd14b6c5 to your computer and use it in GitHub Desktop.
Save pars3c/e094edd8ae8bdc96b7e59c31bd14b6c5 to your computer and use it in GitHub Desktop.
Element not in the set
# Define set
my_set = {2, 5, 6}
(1 not in my_set) # 1 ∉ {2, 5, 6} also means {2, 5, 6} ∌ 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment