Untitled

 avatar
unknown
plain_text
2 years ago
166 B
6
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_num
Editor is loading...