[Solved] : Question 125361

Write a function good_string(p:str)->bool:
The p string must 1. contains one of lowercase(a-z) 2. contains one of uppercase(a-z)
3. contains one of digit(0-9) 4. min length=5 and max length=11 5) No character or digit can appear twice consecutively
For example:
good_string(‘bVc3@’) should return True
good_string(‘Ad##9vv’) should return False (# and v appear twice consecutively)
good_string(‘9$dkiOj@#45E’) should return False (exceed max length)


Expert Answer


Answer to : Question 125361

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?