Tuesday, March 17, 2009

Do All North Face Jackets Have Logo On Back

Cryptography Workshop












Normal

0



21



false

false

false


ES-TRAD

X-NONE

X-NONE



















































































































total = 55.66 * 2 Print

total

exponent Operator:

This operator serves

to raise a certain maximum value.

Usage:

**

Raise 8 squared:

8 ** 2

elevate Now cube
8 ** 3

8 ** 5

remainder of a division operator:

The modulo operator (%) returns the remainder of integer division of two numbers. It is very common to use when you want to know if a number is even or odd.

# 6% 2 == 0

# 5% 2 == 1

All that follows the # sign is a comment, 6% 2 returns 0 , 6 is even number. Otherwise, 5, the remainder is 1.


Operator Division:

5 / 2 # == 2

This is because when you divide two integers the result is an integer, to get the real value, at least one operand must be floating

5 / 2.0 # == 2.5


integer division operator:

5 / / 2 # == 2

5 / / 2.0 == 2.0 #

5 / / 3.33 # == 1.0

This operator does not show decimals, nothing but the whole.

Finally you must create a script of learning.

print "Using the addition operator"


sum = 4 + 8

sumaFlotante = 4.5 + 8.33

totalSuma = sum + sumaFlotante

print sum

print sumaFlotante

print totalSuma

print "Using the subtraction operator"

subtraction = 100 to 50

restaFlotante = 100.77 - 10.32

totalResta = restaFlotante - subtract


print remains

print restaFlotante

print totalResta

print "Using the multiplication operator"

total = 55.66 * 2

total print

print "Using the operator exponent"

print 8 ** 2

print 8 ** 3

print 8 ** 5

print "Using the modulo operator"

print

# 6% 2 == 0

# print 5% 2 == 1

print "Using the division operator"

print 5 / 2 # == 2

print 5 / 2.0 # == 2.5

print "Using integer division operator"

print 5 / / 2

print 5 / / 2.0

print 5 / / 3.33

raw_input ()

Normal 0

21

false

false false

ES-TRAD X-NONE X-NONE



0 comments:

Post a Comment