Skip to content

Instantly share code, notes, and snippets.

@z2s8
Created May 10, 2016 18:19
Show Gist options
  • Save z2s8/25b610d69f535062af1d6329efde0e2d to your computer and use it in GitHub Desktop.
Save z2s8/25b610d69f535062af1d6329efde0e2d to your computer and use it in GitHub Desktop.
Python 3.5.1 (default, Dec 2015, 13:05:11)
[GCC 4.8.2] on linux
a=set()
=> None
a.add(8)
=> None
b=set([4])
=> None
a
=> {8}
b
=> {4}
b.add(9)
=> None
b.add(94)
=> None
b
=> {9, 4, 94}
a
=> {8}
a.update(b)
=> None
a
=> {8, 9, 4, 94}
b
=> {9, 4, 94}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment