I'm setting up a script, and I need to know If there is a specified value in my dictionary.
dict = {"1" : [1, 2, 3], "2" : [4, 5, 6]}
The fact is that I want to analyze all the lists from the dict values but I don't know how can I translate that.
How can I set a variable to True
if 5
is in the dict?
Another topic where you can find a solution.