Absolute Values

Absolute Values#

Define a function called abs_value_list. The function should take a list of numbers and return a list of their absolute values. Think of how you can combine abs function with map to achieve the goal.

Examples:

>>> abs_value_list([1, 0, -3, 5])
[1, 0, 3, 5]
>>> abs_value_list([-1, -1.5, -2])
[1, 1.5, 2]