mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 14:43:43 +00:00
9 lines
163 B
Python
9 lines
163 B
Python
def findMin(x):
|
|
minNum = x[0]
|
|
for i in x:
|
|
if minNum > i:
|
|
minNum = i
|
|
return minNum
|
|
|
|
print(findMin([0,1,2,3,4,5,-3,24,-56])) # = -56
|