+ 2

What's wrong on here?

x=list(input()) newlist=[] thelist=['!', '@', '#', '

#x27;, '%', '&', '*'] for i in x: if i.isdigit() or i in thelist: newlist.append(i) if len(newlist)==4 and len(x)>=7: print("Strong") elif len(newlist)!=4 and len(x)<7: print("Weak")

22nd May 2020, 3:05 PM
˜”*°‱.˜”*°‱ Mohan 333 ‱°*”˜.‱°*”˜
˜”*°‱.˜”*°‱ Mohan 333 ‱°*”˜.‱°*”˜ - avatar
3 RĂ©ponses
+ 2
The password should have two digits and two special characters for to be strong. In the code above will be asked generally for four characters of numbers and special charachters. That means the answer for example 3 characters and 1 number will be passed, but this is false.
22nd May 2020, 3:15 PM
JaScript
JaScript - avatar
+ 3
What kind of problem do you encounter?
22nd May 2020, 3:11 PM
Lothar
Lothar - avatar