Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)]
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> 
>>> import sys
>>> sys.maxint
2147483647
>>> x =  sys.maxint
>>> type(x)
<type 'int'>
>>> x = x + 1
>>> type(x)
<type 'long'>
>>> y = -1 * x
>>> type(y)
<type 'long'>
>>> x = sys.maxint
>>> x
2147483647
>>> type(x)
<type 'int'>
>>> y = x
>>> y = -1 * x
>>> type(y)
<type 'int'>
>>> y = y -1
>>> type(y)
<type 'int'>
>>> y = y - 1
>>> type(y)
<type 'long'>
>>> x = sys.maxint
>>> x = x + 1
>>> type(x)
<type 'long'>
>>> x = x - 1
>>> x
2147483647L
>>> type(x)
<type 'long'>
>>> z = int(x)
>>> z
2147483647
>>> type(z)
<type 'int'>
>>> a = 86L
>>> type(a)
<type 'long'>
>>> a
86L
>>> x = 128768768768768768768768768768
>>> type(x)
<type 'long'>
>>> y = int(x)
>>> y
128768768768768768768768768768L
>>> type(y)
<type 'long'>
>>> 
>>> 
>>> bin(37)
'0b100101'
>>> 
>>> 
>>> bin(-37)
'-0b100101'
>>> bin(sys.maxint)
'0b1111111111111111111111111111111'
>>> bin(sys.maxint+1)
'0b10000000000000000000000000000000'
>>> x = i
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
NameError: name 'i' is not defined
>>> 
>>> x = bin(37)
>>> x
'0b100101'
>>> type(x)
<type 'str'>
>>> sum = 1
>>> prod = 1
>>> count = 1
>>> while count <= 200:
... 	prod = prod * 11
...     count = count + 1
... 
Traceback (most recent call last):
  File "<string>", line 3, in <fragment>
IndentationError: unindent does not match any outer indentation level (<wingdb_compile>, line 3)
>>> while count <= 200:
... 	prod = prod*11
... 	count = count + 1
... 
>>> prod
18990527646046182421218204639541163405858322400098778481272514561037626461679891407506620665933284558135881805238401044949435868367905913020005911442340062387227375955664576836341689587626164144676307968892001L
>>> len(prod)
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
TypeError: object of type 'long' has no len()
>>> s = str(prod)
>>> s
'18990527646046182421218204639541163405858322400098778481272514561037626461679891407506620665933284558135881805238401044949435868367905913020005911442340062387227375955664576836341689587626164144676307968892001'
>>> len(s)
209
>>> 0.1 + 0.2
0.30000000000000004
>>> sum = 0.1
>>> count = 1
>>> while count <= 10:
... 	sum = sum + 0.1
... 	count = count + 1
... 
>>> sum = 0
>>> count = 1
>>> while count <= 10:
... 	sum = sum + 0.1
... 	count = count + 1
... 
>>> sum
0.9999999999999999
>>> 
>>> 
>>> import math
>>> math.ceil(9.87)
10.0
>>> math.ceil(-9.87)
-9.0
>>> 