I have seen so many similar problems but none of them is working for me. I wonder if someone here can help me out. I have a dictionary and I want to get its Key by its Value, as follows
dic = {'Doc4': 2, 'Doc3': 4, 'Doc1': 4, 'Doc2': 6}
That's what I have tried to get 'Doc4' but couldn't find a luck yet,
dic.get(2) & dic.item(2) & dic.iteritem(2) & dic.value(2) & dic.key(2)
Thanks in Advance!