Skip to content

Commit 3fe9044

Browse files
committed
Added identity_operators.py to Python-Basic-to-Advance repo
1 parent 000b707 commit 3fe9044

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

identity_operators.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
a=5
2+
b=2
3+
c='5'
4+
print(a is b)
5+
print(a is not c)
6+
print(id(a))
7+
print(id(b))
8+
print(id(c))

0 commit comments

Comments
 (0)