lundi 6 septembre 2021

I want to repeat this code 10 times without the code opening the same website, using python [closed]

import string, random, webbrowser

passkey=''
for x in range(6):

     if random.choice([1,2]) == 1:
        passkey += passkey.join(random.choice(string.ascii_letters))
     else:
        passkey += passkey.join(random.choice(string.digits))
        

a_string = ('prnt.sc/' + passkey)

webbrowser.open(a_string, new=2)



Aucun commentaire:

Enregistrer un commentaire