negative_number = -7 positive_number = abs(negative_number)
Help on built-in function abs in module __builtin__: abs(...) abs(number) -> number Return the absolute value of the argument.