Completed absolute value program in python