Anonymous user
Boston Python workshop 2/Friday tutorial: Difference between revisions
Boston Python workshop 2/Friday tutorial (view source)
Revision as of 00:07, 27 May 2011
, 12 years ago→Booleans
(→Quotes) |
|||
Line 358:
Use <code>==</code> to test for equality. Recall that <code>=</code> is used for <i>assignment</i> (e.g. <code>my_string == "Hello"</code>).
This is an important idea and can be a source of bugs until you get used to it: <
Use <code>!=</code> to test for inequality:
|