#16. Write a function to get the difference of largest and smallest value.

arr = [2, 4, 6, 8, 10]

x = max(arr)

y = min(arr)

res = x - y

print("Difference of largest and smallest value is: ", res)
