Advertisements
Advertisements
प्रश्न
Consider the following dictionary stateCapital:
stateCapital = {"AndhraPradesh":"Hyderabad",
"Bihar":"Patna","Maharashtra":"Mumbai",
"Rajasthan":"Jaipur"}
Find the output of the following statement:
print(stateCapital.keys())
एका वाक्यात उत्तर
उत्तर
dict_keys(['AndhraPradesh', 'Bihar', 'Maharashtra', 'Rajasthan']): 'keys()' function returns the list of the keys in the dictionary.
shaalaa.com
Manipulating Dictionaries
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?