Newbie that don't understand
fredrik at pythonware.com
Sat Jun 29 19:16:45 CEST 2002
Martin Ståhl wrote:
> if a == b:
> print "The absolute values of", a,"and",b,"are equal"
> print "The absolute values of a and b are different"
> with the output being:
> The absolute values of 23 and 23 are equal"
> how can 23 and -23 be equal?
"value of" != "absolute value of"
in ordinary math notation, the absolute value of a number
x is written |x|, and is simply what you get if you remove
in python, it's usually written:
More information about the Python-list