Computer Science, asked by ppgs, 9 months ago

write a python code to create series from dictionary.

Answers

Answered by ajinkyabiyani
1

Answer:

Dict = {}  

print("Empty Dictionary: ")  

print(Dict)  

 

Dict = dict({1: 'Geeks', 2: 'For', 3:'Geeks'})  

print("\nDictionary with the use of dict(): ")  

print(Dict)  

Dict = dict([(1, 'Geeks'), (2, 'For')])  

print("\nDictionary with each item as a pair: ")  

print(Dict)

Explanation:

Similar questions