I know that my problem can be solved using simple iteration, but i'm new to python and wonder if there is an 'idiomatic' or standard language construcion solution.
So the problem is that i have dictionary like this:
mydict = {
(1,2) : 111,
(2,3) : 222,
(xxx, yyy) : zzz,
(xxx, qqq) : www,
....
It is a dictionary wich consist of key-tuples pointing to values
How do i search for tuple like (xxx, *) if i need only (xxx, yyy) and (xxx, qqq) pairs?
Is there any construction for mydict[(xxx, *)] or something similar?
Thanks for your help!