Create a Python code snippet toshuffle a given list of numbers.
[1, 2, 3, 4, 5]
import random 
  
def shuffle_list(list_nums):
    random.shuffle(list_nums)
    print("Shuffled list :",  list_nums)

list_nums = [1, 2, 3, 4, 5]
shuffle_list(list_nums)