Untitled
unknown
plain_text
2 years ago
166 B
10
Indexable
def find_max(nums):
max_num = float("-inf") # smaller than all other numbers
for num in nums:
if num > max_num:
# (Fill in the missing line here)
return max_numEditor is loading...
def find_max(nums):
max_num = float("-inf") # smaller than all other numbers
for num in nums:
if num > max_num:
# (Fill in the missing line here)
return max_num