Anonymous user
Boston Python Workshop 6/Friday/Tutorial: Difference between revisions
Boston Python Workshop 6/Friday/Tutorial (view source)
Revision as of 00:01, 31 March 2012
, 12 years ago→Booleans
imported>Jesstess |
imported>Jesstess |
||
Line 459:
</pre>
Use <code>==</code> to test for equality. Recall that <code>=</code> is used for <i>assignment</i>
This is an important idea and can be a source of bugs until you get used to it: <b>= is assignment, == is comparison</b>.
|