Computer Science, asked by mehak0429, 3 months ago

write a program that checks for presence of a value inside a dictionary and print its key​

Answers

Answered by tiyakharial54
0

Answer:

hlo

Explanation:

i am tiya ap good afternoon

Answered by abdulmateen19531
1

Answer:

Here is source code of the Python Program to check if a given key exists in a dictionary or not. The program output is also shown below. d={'A':1,'B':2,'C':3} key=raw_input("Enter key to check:") if key in d. keys(): print("Key is present and value of the key is:") print(d[key]) else: print("Key isn't present!").

Explanation:

Hope it helps

Similar questions