Run »
import random mylist = ["apple", "banana", "cherry"] print(random.sample(mylist, k=2))