# sorting easy

The Prize Gap

How far apart are the best and worst prize in the claw machine? 🎁

You get a list of prize values (at least one). Print the biggest value minus the smallest.

Example:

Input: values = [30, 7, 19, 42] Output: 35

The smallest value is 7 and the biggest is 4242 - 7 = 35.

💡 need a hint?

sort-prize-gap.py🔒 given lines are locked — write your code in between
loading...