Code to shuffle or randomize the items from list in Python?
To shuffle or randomize the items in list we use function Shuffle() to get data randomaly from list. Below is thec ode to do that in Python.
List=['Java','asp.net','Python','SQL Server','Big Data']
shuffle(List)
Print(List)
And output of above code is given below
['SQL Server','asp.net','Java','Big Data','Python'] | |