0
Code works fine but still 4 test cases failed, how to resolve? https://www.sololearn.com/coach/76?ref=app
https://code.sololearn.com/cngwndrX0ra6/?ref=app
11 Réponses
+ 4
Try the code i shared above, am sure it must help
+ 2
Try this
Password validation
pw = input()
special = '!@#$%&*'
nums = '0123456789'
specount = 0
numcount = 0
if len(pw) > 6:
lencheck = True
else:
lencheck = False
for l in pw:
if l in special :
specount += 1
if l in nums :
numcount += 1
if numcount > 1 and specount > 1 and lencheck:
print("Strong")
else:
print("Weak")
Happy coding 😊 Keep coding 🙏
+ 1
Your code works fine, but, I want to know what's wrong with mine
0
Tried it, same results
0
Updated
0
Same results: 4 test cases failed