Skip to content

Commit 612e653

Browse files
committed
dictionaries.py
1 parent 8db37a9 commit 612e653

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

dictionaries.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818
print(phone_no['Shyam']['Shyam_work'])
1919
del phone_no['Ram']
2020
print(phone_no)
21-
#print(phone_no.pop('Shyam'))
22-
print(phone_no.popitem())
23-
print(phone_no)
21+
#print(phone_no.pop('Shyam'))particular item delete
22+
print(phone_no.popitem())#random delete
23+
print(phone_no)
24+
print(phone_no.keys())
25+
print(phone_no.values())
26+
print(phone_no.items())
27+
for i in phone_no.items():
28+
print(i)
29+
phone_no2=phone_no.copy()
30+
print(phone_no2)
31+

0 commit comments

Comments
 (0)