Skip to content

Commit 9c699d4

Browse files
committed
Added membership_operators.py to Python-Basic-to-Advance repo
1 parent 22a4d1f commit 9c699d4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

membership_operators.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
str = 'Jenny'
2+
print('t' not in str)
3+
List=["Amrata","Hrutuja"]
4+
print("Amrata" in List)
5+
Tuple=(1,2,3)
6+
print(1 not in Tuple)
7+
Dict={"name":"Hrutuja","age":25}
8+
print("Hrutuja" in Dict)

0 commit comments

Comments
 (0)