Python Notes for mca i year students osmania university.docx
H Alg2 090409
1. September 4, 2009
Warm Up
x, if x is positive
x = { 0,
x,
if x = 0
if x is negative
Above is the mathematical definition of
absolute value. What is your understanding
of absolute value? How does this match up
with the definition above?
2. x y The distance between
x and y
x 5 = 2 The distance between
x and 5 is 2 units
x + 7 = 5 The distance between
x and 7 is 5 units