Password length | SoloLearn: Learn to code for FREE!

-1

Password length

How can i regulate password length for a password genrwtor

5/30/2018 12:36:39 AM

TheNuclearMango

14 Answers

New Answer

+4

but ur formation is wrong it will be int (input ())

+3

yes...I have used it in my code you can see

+3

+3

It is nice and perfectly runs...so l should hit the up arrow ...but my id is not activated so I cant...sorry frnd

+1

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.

+1

https://code.sololearn.com/cjwBWeuArhmo/?ref=app

0

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.

0

0

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.

0

0

just one more question, can int(input)() be used to choose length of password?

0

0

https://code.sololearn.com/cBtxnkEdmPaj/?ref=app do you like It? first code dont blame me if it sucks

0