So i have this code:
import random s = "a[email protected]#$%^&*()?" passlen = 8 p = "".join(random.sample(s,passlen )) print (p)
that generates a random password with length of 8.
however, if i want to change
passlen to an input (see repl below), it gives an error.
Anyone know why and how to fix it?
Any help much appreciated!
thanks in advance! ;)