+ 3
How to find key if have innervalue?
d={"apple":{"num": 3}, "Orange":{"num": 1}} if I have 3 how to fine apple or have 1 how to find orange?
2 odpowiedzi
+ 1
I find that :
x=111
for k,v in d.items():
if x in v.values():
print(k)
d={"apple":{"num": 3}, "Orange":{"num": 1}} if I have 3 how to fine apple or have 1 how to find orange?