From 67d409b6be5f90c33e73ddf73ba2966d8f2c44f4 Mon Sep 17 00:00:00 2001 From: Uyen Date: Mon, 22 Oct 2018 14:36:08 -0400 Subject: [PATCH] Find max function in python --- Maths/FindMax.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Maths/FindMax.py diff --git a/Maths/FindMax.py b/Maths/FindMax.py new file mode 100644 index 000000000..d16a9dc1f --- /dev/null +++ b/Maths/FindMax.py @@ -0,0 +1,10 @@ +# NguyenU + +import math + +def find_max(nums): + max = 0 + for x in nums: + if x > max: + max = x + print max