Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
166 B
3
Indexable
Never
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