Model boolean variables in Python
<p>The behavior desired is this: </p>

<pre><code>In [653]: choice = 'A'

In [654]: not(choice)
Out[654]: 'B'
</code></pre>

<p>Is there a robust way in which this can be done? Currently I'm using simple hacks like these. </p>

<pre><code>def other(choice):
    if choice == 'A':
        return 'B'
    else:
        return 'A'

In [635]: other('B')
Out[635]: 'A'

d = dict()
d['A'] = 'B'
d['B'] = 'A'

In [652]: d['A']
Out[652]: 'B'
</code></pre>
