This question has already been answered:
There is a prepared list of words, it is necessary that a word be randomly chosen, sent and no longer used until all the words have run out.
This question has already been answered:
There is a prepared list of words, it is necessary that a word be randomly chosen, sent and no longer used until all the words have run out.
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
import random l = list(range(10)) while l: print(l.pop(random.randrange(len(l)))) Conclusion:
6 8 4 9 5 0 7 2 3 1 l = list(set(l)) - ScarabyteSource: https://ru.stackoverflow.com/questions/813524/
All Articles