Variable.py

>>> 2 + 2
4
>>> 50 - 5 * 6
20
>>> (50 - 5 * 6) / 4
5.0
>>> round(5.0)
5
>>> 5.123456
5.123456
>>> round(5.123456,2)
5.12
>>> 17 / 3
5.6666666666667
>>> 17 / / 3
5
>>> 18 / / 4
4
>>> 20 / / 5
4
>>> 17 % 3
2
>>> 17 * 4 % 3
2

addition = 75 + 25
subtration = 204 - 204
multiplication = 100 * 0.5
division = 90 / 9
power of 2 = 3 ** 2
the reminder of the division = 10 % 3 

integer - int - 1,2,3,...,100,etc.
float 	-	  - 1.0,5.9,6.0,69.46,etc.
string  -	  - 'Hello World' "World" , "A""B",
 
 >>> 2+2
4
>>> 50 - 5 * 6
20
>>> (50 -5 * 6)/ 4
5.0
>>> round(5.0)
5
>>> round(5.14568,3)
5.146
>>> 5 * 3 + 2 % 3
17
>>> 5 * 3 + 3 % 4
18
>>> 6* 9 - 4 * 5 % 2
54
>>> 7 * 5 - 6 * 3 % 3
35
>>> 6 * 5 - 7 * 4 / 4 % 2
29.0
>>> 8 * 9 / 4 * 5 % 3 - 2
-2.0
>>> 6 * 9 - 4 * 5 % 2
54
>>> 2 % 3
2
>>> 15 % 3
0
>>> print ('spam eggs')
spam eggs
>>> print ('don\'t')
don't
>>> print ('doesn't')
  File "<stdin>", line 1
    print ('doesn't')
                  ^
SyntaxError: invalid syntax
>>> print ('"yes"')
"yes"
>>> print ("\"Yes,\they said")
"Yes,   hey said
>>> print ("\"Yes"\ they said")
  File "<stdin>", line 1
    print ("\"Yes"\ they said")
                              ^
SyntaxError: unexpected character after line continuation character
>>> print ("\"Yes,\"they said")
"Yes,"they said
>>> print ('"Isn\'t" they said')
"Isn't" they said
>>> print ('"Isn\'t, they said"')
"Isn't, they said"
>>> s = 'First line.\nSecond Line'
>>> print(s)
First line.
Second Line
>>> print("""\
... Usage: thingy
...        -a
...        -b
...        -c
... """)
Usage: thingy
           -a
           -b
           -c
>>> a = 1
>>> a (variable) = (assign) 1 (value)

width = 20
height = 5 * 9
vol = width * height
vol

sale = 1500
tax = 5 / 100
total_tax = sale * tax 
total_tax
total_price = sale + total_tax

