Python Interviews: Difference between revisions
Content added Content deleted
Line 263: | Line 263: | ||
>>> int(c) |
>>> int(c) |
||
30 |
30 |
||
= "is" vs "==" = |
|||
a = [1,2,3] |
|||
b = a |
|||
c = [1,2,3] |
|||
print(a==c) |
|||
print(a is c) |
|||
Output: |
|||
True |
|||
False |