With Python pick random item


If you have a list of items or a sequence and you want to pic a random item from said sequence. Here is a quick way to do it

from random import choice

letters = ['a', 'b', 'c', 'd']

print(choice(letters))