python data type comparisons
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3270680/how-does-python-compare-string-and-int">How does Python compare string and int?</a>  </p>
</blockquote>



<p>Can any one explain the below.how is the 'a' compared to 1
Internally is a and 1 ASCII  val is compared or how is it
i.e, there is some conversion happening with 'a' and then compared or how is this.Please explain</p>

<pre><code>&gt;&gt;&gt; 'a' &gt; 1
True
&gt;&gt;&gt; 'a' &gt; 'b'
False
</code></pre>
