0

I am trying to find the key with the known values ..I can easily find the value with the key using d['Key1'] but suppose if values are like provided below and is known how to get the key name using the value ..

Example .. If I know there is k1 as value how to get the key of it from dict ?

d = {'key1':'k1',"Key2":"k2"}
RonyA
  • 535
  • 3
  • 8
  • 23

0 Answers0