Run
import random seq = ['apple', 'banana', 'cherry', 'mango'] x = random.choices(seq, k = 2) print(x)
Output