Advertisements
Advertisements
प्रश्न
Assuming that D1 is a dictionary in Python.
Write a Python expression to check if any key in D1 has a value 12.
अति संक्षिप्त उत्तर
Advertisements
उत्तर
To check if the value
12 is present in the dictionary D1, you can use the in operator along with the .values() method.12 in D1.values()shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2025-2026 (March) Set 4
