Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Phantasm (phnt@fluffytail.org)'s status on Sunday, 12-Nov-2023 21:16:07 JSTPhantasm from random import randint list_of_bad_words = [ ... ] used = [] words = [] s = ", " for x in range(3): while True: rand = randint(0,3) if rand not in used: break used.append(rand) words.append(list_of_bad_words[rand]) print(s.join(words))