mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
absMax.py and absMin.py bugs fixed. (#624)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
def absVal(num):
|
||||
"""
|
||||
Function to fins absolute value of numbers.
|
||||
>>>absVal(-5)
|
||||
>>absVal(-5)
|
||||
5
|
||||
>>>absVal(0)
|
||||
>>absVal(0)
|
||||
0
|
||||
"""
|
||||
if num < 0:
|
||||
|
||||
Reference in New Issue
Block a user