Matching values in Python dictionary
<p>I read a file that has 7 values with 7 different keys on each line and I put them in a dictionary. Some of the keys have '*' values and when I iterate through them I want to skip those in my operation. So, if my dictionary name is mydictionary can I do this:</p>

<pre><code>    for entry in mydictionary:
        if entry != '*'
           do some work here
</code></pre>