You can download this code by clicking the button below.
This code is now available for download.
This function takes a list as input and then shuffles the elements of the list in place.
Technology Stack : random
Code Type : Function
Code Difficulty : Intermediate
import random
def shuffle_list(input_list):
"""
Shuffle a list in place.
"""
random.shuffle(input_list)
return input_list