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 – Default import random l = ['a', 'b', 'c', 'd', 'e'] print(random.choice(l)) 12345 import random l = ['a', 'b', 'c', 'd', 'e'] print(random.choice(l)) Tags: FAQ, Python Leave a Reply Cancel replyYou must be logged in to post a comment.