title: python comparing elements in dictionary to a float
body: <p>If I have a dictionary of pvalues, such that accessing <code>pvalues[i][classes[j]]</code> gives the pvalue from comparing class j to other classes in row i. However, when I try to iterate over the dictionary to find the significant values (i.e., if <code>pvalues[i][classes[j]] &lt; 0.05</code>), I get <code>TypeError: unorderable types: list() &lt; float()</code>. Is there anyway to compare the list elements to the 0.05 float without flattening the list and losing the class designations? Thanks.</p>