Added findMin

This commit is contained in:
gerroo 2018-10-28 13:23:29 -08:00
parent dd8e2afae6
commit 991abb2402

8
Maths/FindMin.py Normal file
View File

@ -0,0 +1,8 @@
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