We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd8e2af commit 991abb2Copy full SHA for 991abb2
Maths/FindMin.py
@@ -0,0 +1,8 @@
1
+def findMin(x):
2
+ minNum = x[0]
3
+ for i in x:
4
+ if minNum > i:
5
+ minNum = i
6
+ return minNum
7
+
8
+print(findMin([0,1,2,3,4,5,-3,24,-56])) # = -56
0 commit comments