Skip to content

Instantly share code, notes, and snippets.

@SahbiOuali13
Last active September 3, 2020 18:09
Show Gist options
  • Save SahbiOuali13/b936c4d9d7edbf44d463a9352a071e10 to your computer and use it in GitHub Desktop.
Save SahbiOuali13/b936c4d9d7edbf44d463a9352a071e10 to your computer and use it in GitHub Desktop.
is function verifies is the variables here occupies the same memory placement and therefore the False == verifies is the twho variables have the same value and therefore the True.
a = [1, 2, 3]
b = [1, 2, 3]
print(a == b)
# True
print(a is b)
# False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment