mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Travis CI: Add pytest --doctest-modules maths (#1020)
* Travis CI: Add pytest --doctest-modules maths * Update lucas_series.py * Update lucas_series.py
This commit is contained in:
committed by
Anup Kumar Panwar
parent
b35f5d971b
commit
93fdc9f2a1
@@ -1,10 +1,11 @@
|
||||
from abs import abs_val
|
||||
from .abs import abs_val
|
||||
|
||||
|
||||
def absMin(x):
|
||||
"""
|
||||
# >>>absMin([0,5,1,11])
|
||||
>>> absMin([0,5,1,11])
|
||||
0
|
||||
# >>absMin([3,-10,-2])
|
||||
>>> absMin([3,-10,-2])
|
||||
-2
|
||||
"""
|
||||
j = x[0]
|
||||
@@ -13,9 +14,11 @@ def absMin(x):
|
||||
j = i
|
||||
return j
|
||||
|
||||
|
||||
def main():
|
||||
a = [-3,-1,2,-11]
|
||||
print(absMin(a)) # = -1
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user