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
Read about capabilities of Random library. It can write simpler. For example:
import random data = ["house", "word", "computer", "table", "cat", "enter", "space"] x = random.sample(data, len(data)) print(x)