Write a Python snippet to print the difference between the largest and smallest values in a given array.
[1,2,3,4,5]
def diff_max_min(numbers):
    return max(numbers) - min(numbers)
  
if __name__ == '__main__':
    nums = [1,2,3,4,5]
    diff = diff_max_min(nums)
    print(diff)