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

Function find_max

Maths/FindMax.py:3–8  ·  view source on GitHub ↗
(nums)

Source from the content-addressed store, hash-verified

1# NguyenU
2
3def find_max(nums):
4 max = nums[0]
5 for x in nums:
6 if x > max:
7 max = x
8 print(max)
9
10def main():
11 find_max([2, 4, 9, 7, 19, 94, 5])

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected