jeudi 16 septembre 2021

python How do I use a variable as a one of the parameters in randrange

I'm working on a password generator and it asks how many digits so then I use that as a part of randrange. It does not work. This is the code:

import random
print("how many digits")
digits = input("")
int(digits)
print(digits)



Aucun commentaire:

Enregistrer un commentaire