How can you randomize the items of a list in place of Python?

python1(i2tutorials.com)

The method shuffle() can be used to randomize the items of a list in place. It should be noted that this function is not accessible directly and therefore we need to import or call this function using random static object.

Syntax:   shuffle (lst)

Here, ‘lst’ is passed as a parameter which could be a list or tuple. The shuffle() returns a reshuffled list of items.