mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 16:27:02 +00:00
Find max function in python
This commit is contained in:
parent
fedb3e70ab
commit
67d409b6be
10
Maths/FindMax.py
Normal file
10
Maths/FindMax.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
# NguyenU
|
||||
|
||||
import math
|
||||
|
||||
def find_max(nums):
|
||||
max = 0
|
||||
for x in nums:
|
||||
if x > max:
|
||||
max = x
|
||||
print max
|
Loading…
Reference in New Issue
Block a user