From 45a1ab213e4cfd94061348c7c3de20dcc7de94e8 Mon Sep 17 00:00:00 2001 From: Harshil Date: Mon, 22 Oct 2018 20:42:08 +0200 Subject: [PATCH] Update FindMax.py --- Maths/FindMax.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Maths/FindMax.py b/Maths/FindMax.py index d16a9dc1f..451ba0363 100644 --- a/Maths/FindMax.py +++ b/Maths/FindMax.py @@ -1,10 +1,15 @@ # NguyenU import math - def find_max(nums): max = 0 for x in nums: if x > max: max = x - print max + print(max) + +def main(): + find_max([2, 4, 9, 7, 19, 94, 5]) + +if __name__ == '__main__': + main()