I still have
import random def go(): rounds = 0 while rounds < 5: number = random.randint(1, 5) if number == 1: print('a') elif number == 2: print('b') elif number == 3: print('c') elif number == 4: print('d') elif number == 5: print('e') rounds = rounds + 1 go()
and the exit ends with creatures something along the lines
e e c b e
How to make sure that the number is used only once and the letters are not repeated? (for example, something like)
a e b c d
Thank you in advance
source share