Code: Alles auswählen
dasich@tux ~ $ python
Python 2.4.4 (#1, May 9 2008, 21:15:54)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> test = 'word'
>>> if test == '''doesn't''':
... print test
...
>>> if test == '''doesn't''' or '''don't''':
... print test
...
word
>>> if test is '''doesn't''' or '''don't''':
... print test
...
word
>>>