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.
>>> 10 % 2
0
>>> 11 % 2
1
>>> 101 % 2
1
>>> 10 % 3
1
>>> 25 % 9
7
>>> 15/2
7
>>> 14/2
7
>>> 15.0/2
7.5
>>> n = 101
>>> n = n/2
>>> print n
50
>>> n = n + 1
>>> print n
51
>>> n = math.sqrt(100)
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
NameError: name 'math' is not defined
>>> import math
>>> n = math.sqrt(100)
>>> print n
10.0
>>> 
>>> 
>>> 
>>> x = raw_input("Enter a number: ")
Enter a number: 120
>>> print x
120
>>> x = raw_input("Enter a number: ")
Enter a number: Hello
>>> print x
Hello
>>> x = raw_input("Enter a number: ")
Enter a number: Hello, how are you?
>>> print x
Hello, how are you?
>>> 
>>> 
>>> x = raw_input("Enter a number: ")
Enter a number: 120
>>> print x
120
>>> x = x + 1
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
TypeError: cannot concatenate 'str' and 'int' objects
>>> 
>>> 
>>> type(100)
<type 'int'>
>>> type(100.0)
<type 'float'>
>>> type("100")
<type 'str'>
>>> x = 101/2
>>> type(x)
<type 'int'>
>>> x = 15
>>> type(x)
<type 'int'>
>>> x = 15*1.0
>>> print x
15.0
>>> type(x)
<type 'float'>
>>> 
>>> int(7.0)/2
3
>>> int(7.0)
7
>>> int("hello")
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
ValueError: invalid literal for int() with base 10: 'hello'
>>> int(8,6)
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
TypeError: int() can't convert non-string with explicit base
>>> int(8.6)
8
>>> float("-320.78")
-320.78
>>> float("67.0/2")
Traceback (most recent call last):
  File "<string>", line 1, in <fragment>
ValueError: invalid literal for float(): 67.0/2
>>> str(45/2)
'22'
>>> 