Comparing string for equality with == operator in python
<p>So I am trying to compare two string variables with <code>==</code> and it is not working for some reason. For example this code</p>

<pre><code>print(dictionary[0])
print("A")
print(dictionary[0] == "A")
</code></pre>

<p>prints out</p>

<pre><code>A    
A
False
</code></pre>

<p>I don't understand why it returns <code>False</code> when they are clearly equal.</p>