make all values in a list absolute code example Example: python convert list to absolute value res = [abs(element) for element in testlist]