Advertisements
Advertisements
प्रश्न
Consider the following dictionary stateCapital:
stateCapital = {"AndhraPradesh":"Hyderabad",
"Bihar":"Patna","Maharashtra":"Mumbai",
"Rajasthan":"Jaipur"}
Find the output of the following statement:
print("Maharashtra" in stateCapital)
एक पंक्ति में उत्तर
उत्तर
True: 'in' is a membership operator which returns true if a key is present in the dictionary.
shaalaa.com
Tuple Operations
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?