Skip to content

Instantly share code, notes, and snippets.

@KamilaBorowska
Created September 15, 2012 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KamilaBorowska/3727197 to your computer and use it in GitHub Desktop.
Save KamilaBorowska/3727197 to your computer and use it in GitHub Desktop.
glitchmr@feather ~> python3
Python 3.2.3 (default, Aug 26 2012, 22:11:40)
[GCC 4.7.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> set = {1, 2, 3}
>>> set
{1, 2, 3}
>>> set.add(4)
>>> set
{1, 2, 3, 4}
>>> set.discard(2)
>>> set
{1, 3, 4}
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment