Write a Python function that takes a list and returns the difference between the biggest and smallest numbers.


Topic: Write a Python function that takes a list and returns the difference between the biggest and smallest numbers.

Solution

def difference_max_min(lst):
	return abs(min(lst) - max(lst))



List all Python Programs