Last active
September 3, 2020 18:09
-
-
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.
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
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