samedi 13 juin 2020

Getting

I am trying to code a random letter and number generator and it's working pretty fine. The only thing that's not working is the output.

Code:

Code = input()
if Code.isalpha() == True:
    print("How many do you want to generate using this pattern?")
    GenNumber = int(input())
    for i in range(int(GenNumber)):
        print(''.join(secrets.choice(LetterNumbers)) for _ in Code)
    input("Press anything to quit...")

I have already tried with

print(list(''.join(secrets.choice(LetterNumbers)) for _ in Code))

But it gives me an output that looks like this:

['A', 'B', 'C']

The output has to be like this:

ABC



Aucun commentaire:

Enregistrer un commentaire