Write a python program to create a dictionary for storing below
information: (Remembering, Applying)
Roll_Number = 1, Name = 'Damodar', City = 'Nasik', Country = 'India'
Display all the keys.
Display all the values.
Display value for the key = 'City'
Remove all items from the dictionary.
Answers
Answered by
0
Answer:
dict = {"Roll_Number": 1, "Name": "Damodar", "City": "Nasik", "Country": "India"}
print(dict.keys())
print(dict.values())
print(dict["City"])
dict.clear()
Similar questions
English,
2 months ago
English,
2 months ago
English,
4 months ago
Math,
4 months ago
Math,
11 months ago
Social Sciences,
11 months ago
Computer Science,
11 months ago