python program on dictionary

0

Python Dictionaries

Program 1 # Dictionary in Python #myd={101:’CSE’,102:’IT’,103:’Civi’,104:’MBA’,105:’Account’,102:’ITDept’} # myd={101:’CSE’,102:’IT’,103:’Civi’,104:’MBA’,105:’Account’} # print(myd.keys()) # print(“———————————-“) # print(myd.values()) # print(“———————————-“) # print(myd.items()) #print(len(myd)) # print(“Before Pop: “) # print(myd) # myd.popitem() # print(“After Pop: “) # print(myd)...

0

Python Program on Dictionary

In this article, we will delve into the world of dictionaries, a versatile and powerful data type in Python. The program presented focuses on dictionary operations, demonstrating how to initialize a dictionary, modify its...