mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-27 08:56:44 +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…
x
Reference in New Issue
Block a user