Boston Python Workshop 3/Friday/Tutorial: Difference between revisions

Content added Content deleted
imported>Jesstess
imported>Jesstess
Line 457: Line 457:
</pre>
</pre>


You can test if Python objects are equal or unequal:
You can test if Python objects are equal or unequal. The result is a boolean:


<pre>
<pre>
Line 481: Line 481:
</pre>
</pre>


<code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, and <code>&gt;=</code> have the same meaning as in math class:
<code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, and <code>&gt;=</code> have the same meaning as in math class. The result of these tests is a boolean:


<pre>
<pre>