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
Math,
3 hours ago
Political Science,
3 hours ago
English,
5 hours ago
Math,
5 hours ago
Math,
7 months ago
Computer Science,
7 months ago