Skip to content

Instantly share code, notes, and snippets.

@brainix
Last active September 18, 2020 05:40
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 brainix/90a1af879eb8bb710a2b152b983a1aa1 to your computer and use it in GitHub Desktop.
Save brainix/90a1af879eb8bb710a2b152b983a1aa1 to your computer and use it in GitHub Desktop.
>>> j = 256
>>> k = 256
>>> j is k
True
>>> j = 257
>>> k = 257
>>> j is k
False
>>> j, k = 257, 257
>>> j is k
True
>>> {True, 1}
{True}
>>> {True: 'true', 1: 'one'}
{True: 'one'}
>>> {*()}
set()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment