MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / findMin

Function findMin

Maths/FindMin.py:2–7  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1def main():
2 def findMin(x):
3 minNum = x[0]
4 for i in x:
5 if minNum > i:
6 minNum = i
7 return minNum
8
9 print(findMin([0,1,2,3,4,5,-3,24,-56])) # = -56
10

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected