If I have a specific list with specific letters, how do I first ask the user to input a random number of sequences they want, then a random number of length of the sequence they want, and then generate a list with that information.
EX:
list = ['A', 'B', 'C', 'D']
number of sequence user wants: 25
length of sequence user wants: 6
output:
sequence 1: BCADAC
sequence 2: ABCDBA
sequence 3: DCBADC
.....
sequence 25: CABADB
Aucun commentaire:
Enregistrer un commentaire