We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
def max_difference(lst): max_val = lst[0] min_val = lst[0] for num in lst: if num > max_val: max_val = num if num < min_val: min_val = num return max_val - min_val