mardi 1 septembre 2020

Specific string generation in python of 5 alphabets followed by 4 numbers. example ABCDE1234

I have used the following code but not getting the desired output. please help me.

"{}{}{}".format((random.choices(string.ascii_uppercase)for i in range(5)), random.randint(1000,9999))




Aucun commentaire:

Enregistrer un commentaire