5/30/2018 12:36:39 AM
TheNuclearMango14 Answers
New AnswerIt 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.
https://code.sololearn.com/cBtxnkEdmPaj/?ref=app do you like It? first code dont blame me if it sucks
Learn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message