Question ^ related dict

How to access the dict key by their Values ???

1 Like

@sriv.ansh

dict ={β€œhow”: β€œA”,β€œto”:β€œB”,β€œsolve”:β€œC”}

value = {i for i in dict if dict[i]==β€œB”}

print(β€œkey by value:”,value)

Try above code.

Thank you so much Mam :slight_smile:

2 Likes

@sriv.ansh
Keep it up :slightly_smiling_face: keep learning