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()