Python 2.7 (r27:82500, Sep 16 2010, 18:02:00) 
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)]
Type "help", "copyright", "credits" or "license" for more information.
>>> type(True)
<type 'bool'>
>>> type(False)
<type 'bool'>
>>> type(true)
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
NameError: name 'true' is not defined
>>> true = True
>>> type(true)
<type 'bool'>
>>> x = 10
>>> x < 50
True
>>> type(x < 50)
<type 'bool'>
>>> type(x == 50)
<type 'bool'>
>>> x != 10
False
>>> x <> 10
False
>>> suffix = ""
>>> n = 23
>>> suffix = n%2 + suffix
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
TypeError: unsupported operand type(s) for +: 'int' and 'str'
>>> suffix = n%2 + suffix
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
TypeError: unsupported operand type(s) for +: 'int' and 'str'
>>> suffix = str(n%2) + suffix
>>> print suffix
1
>>> n = n/2
>>> suffix = str(n%2) + suffix
>>> print suffix
11
>>> n = n/2
>>> suffix = str(n%2) + suffix
>>> print suffix
111
>>> n = n/2
>>> suffix = str(n%2) + suffix
>>> print suffix
0111
>>> n
2
>>> 