diff --git a/Maths/FindMax.py b/Maths/FindMax.py index 451ba0363..0ce49a68c 100644 --- a/Maths/FindMax.py +++ b/Maths/FindMax.py @@ -1,8 +1,7 @@ # NguyenU -import math def find_max(nums): - max = 0 + max = nums[0] for x in nums: if x > max: max = x