I want to write a program that displays all the elements of a list in random order without repetition. It seems to me that it should work, but only prints those elements wi
import random items = ["house", "word", "computer", "table", "cat", "enter", "space"] tab= [] while len(tab) < len(items): item = random.choice(items) if item not in tab: tab.append(item) print(tab)