+ 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")3 Antworten
+ 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.
+ 3
What kind of problem do you encounter?