I have the following:
list1 = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k"]
for i in range(3):
print(random.sample(list1, k=1))
print(random.sample(list1, k=1))
print(random.sample(list1, k=1))
and am looking for something like:
['a', 'g', 'i']
['c', 'h', 'b']
['k', 'd', 'e']
The idea being to have no repeats anywhere.
I understand that I could slice the list if not using a loop, but am unsure of how to go about it with the loop involved.