How can i regulate password length for a password genrwtor
5/30/2018 12:36:39 AM
but ur formation is wrong it will be
int (input ())
yes...I have used it in my code you can see
It is nice and perfectly runs...so l should hit the up arrow ...but my id is not activated so I cant...sorry frnd
Another option to what Pedro said, if you are using a graphical interface, is to limit the number of characters that the text box supports.
Which language you’ll be using? Anyway you can get the password as a string and check how many characters there are in it. Then you only accept passwords with the lengths you want, e.g. with a while loop.
If you’ll be generating random passwords on Python, take a look at the random module. It’ll help you making random strings with specific lenghts.
just one more question, can int(input)() be used to choose length of password?
do you like It?
first code dont blame me if it sucks
Learn Playing. Play Learning
Send us a message