Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
def
find_max(nums):
4
max = nums[0]
5
for
x in nums:
6
if
x > max:
7
max = x
8
print(max)
9
10
def
main():
11
find_max([2, 4, 9, 7, 19, 94, 5])
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected