Python: (sub) String equivalence vs List fast membership testing
<p>Can somebody explain to me the following (python 2.7)</p>

<p>Two string numbers, from a parsed file:</p>

<p>'410.9'
'410.9 ' (Notice the trailing space)</p>

<pre><code>A_LIST = ['410.9 ']

'410.9' in '410.9 '
True

'410.9' in A_LIST
False
</code></pre>

<p>No problem working around this - just trying to understand why it is so.</p>

<p>Thanks!</p>
