I have a question about calculating the absolute value of a list. I have written a short code to calculate the absolute value of each single element from a list and I was wondering if there is a faster way of doing this, Thanks!
test_list = [5, -60, 74, -83, -120]
result = [abs(i) for i in test_list]
print(result)