Scoring 12/13 why missing one?? Can anyone tell me where am wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Scoring 12/13 why missing one?? Can anyone tell me where am wrong?

import re password=input() pattern=r"([!@#

amp;%*]{2})" match=re.search(pattern,password ) if (len(password)>=7): if match: if(len([x for x in password if x.isdigit()])>=2): print("Strong") else: print("Weak") else: print("Weak") else: print("Weak")

3rd Jun 2020, 4:31 AM
Gordon Okoth Agola
Gordon Okoth Agola - avatar
4 Answers
+ 10
Sorry for that
3rd Jun 2020, 4:56 AM
Bharat
Bharat - avatar
+ 2
Yeah thanks for your concern
3rd Jun 2020, 5:00 AM
Gordon Okoth Agola
Gordon Okoth Agola - avatar
+ 2
Mansi and 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 Thank to all of you for the concern. Busy coding day Much appreciation 💯
3rd Jun 2020, 5:05 AM
Gordon Okoth Agola
Gordon Okoth Agola - avatar
+ 1
I just miss one special character in my regex , the code have help too
3rd Jun 2020, 4:58 AM
Gordon Okoth Agola
Gordon Okoth Agola - avatar