We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f991f7 commit c2f2fa8Copy full SHA for c2f2fa8
maths/__init__.py
@@ -0,0 +1 @@
1
+
maths/abs_min.py
@@ -1,4 +1,5 @@
-from Maths.abs import absVal
+from abs import abs_val
2
3
def absMin(x):
4
"""
5
# >>>absMin([0,5,1,11])
@@ -8,7 +9,7 @@ def absMin(x):
8
9
10
j = x[0]
11
for i in x:
- if absVal(i) < absVal(j):
12
+ if abs_val(i) < abs_val(j):
13
j = i
14
return j
15
0 commit comments