Skip to content

Instantly share code, notes, and snippets.

@tonetheman
Created July 30, 2019 00:22
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 tonetheman/44db3c4db798216e498f7f827b43041c to your computer and use it in GitHub Desktop.
Save tonetheman/44db3c4db798216e498f7f827b43041c to your computer and use it in GitHub Desktop.
weird thing about python
a = 1
b = 1
print(a,b,a is b)
a = 2
b = 2
print(a,b,a is b)
a = -6
b = -6
print(a,b,a is b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment