Created
September 15, 2012 10:03
-
-
Save KamilaBorowska/3727197 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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