vendredi 17 septembre 2021

How to put random.randint into a list

I'm having trouble trying to put a random.randint into my list and making it work so far I have this:

strings = [str(chr(random.randint(65, 90))) % x for x in range(0, int(uppercase) + 1)]
        for string in strings:
            print(string)

I can get it to work without random.randint with just adding text but I can not get it to work for random.randint

Also I want to see if I can turn the list into a single sentence "useful for my purpose"




Aucun commentaire:

Enregistrer un commentaire