How to caculate the absolute value for an array in python?
How to caculate the absolute value for an array in python?
How to caculate the absolute value for an array in python?
for example: a = [5,-2,-6,5]
I want to know the max of abs(a), and the answer should be 6. Thank you!
No comments:
Post a Comment