Skip to content

Commit 67d409b

Browse files
committed
Find max function in python
1 parent fedb3e7 commit 67d409b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Maths/FindMax.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# NguyenU
2+
3+
import math
4+
5+
def find_max(nums):
6+
max = 0
7+
for x in nums:
8+
if x > max:
9+
max = x
10+
print max

0 commit comments

Comments
 (0)