+ 1
If you have a simpler method, thank you for telling me
3 Antworten
+ 1
import re
password = input()
d = len(re.findall(r"[!@#$%&*]",password))
g = len(re.findall(r"\d",password))
if d>=2 and g>=2 and len(password)>=7:
print ('Strong')
else :
print ('Weak')
0
https://code.sololearn.com/c7r247tcwo2Y/?ref=app
Trying this but not able to get return values
0
Thanks for your attention