How can I randomly select an item from a Python list?

You can use Python random module to randomly select an item from a list in Python as shown in the below example –

Leave a Reply

Close Menu