Skip to content

Commit 70a6d98

Browse files
authored
Update absMin.py
1 parent aa11f16 commit 70a6d98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Maths/absMin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def absMin(x):
66
>>absMin([3,-10,-2])
77
-2
88
"""
9-
j = x[0]
9+
j = absVal(x[0])
1010
for i in x:
1111
if absVal(i) < j:
1212
j = i

0 commit comments

Comments
 (0)