Skip to content

Instantly share code, notes, and snippets.

@pars3c
Last active February 19, 2020 08:19
Show Gist options
  • Save pars3c/890b1139737b42ff49eaa67e45eb2d05 to your computer and use it in GitHub Desktop.
Save pars3c/890b1139737b42ff49eaa67e45eb2d05 to your computer and use it in GitHub Desktop.
Element within the set
# Define Set
my_set = {1, 2, 3}
(1 in my_set) # 1 ∈ {1, 2, 3} also means {1, 2, 3} ∋ 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment