Update absMin.py

This commit is contained in:
Ashwek Swamy 2018-11-11 22:57:36 +05:30 committed by GitHub
parent aa11f16a42
commit 70a6d98e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ def absMin(x):
>>absMin([3,-10,-2])
-2
"""
j = x[0]
j = absVal(x[0])
for i in x:
if absVal(i) < j:
j = i