kesh123 0 Newbie Poster
choice=("A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z")
choice1=("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z")
choice2=("0,1,2,3,4,5,6,7,8,9")
user=input("Enter password")
while not (6 <= len(user) <= 12):
    user=input("The password needs to be at least 6 characters and no more than 12, enter password again")

if user in (choice2) or user in str(choice) or user in  (choice1):
    print("password is weak")
elif user in  choice2 and  choice1 or user in choice and choice1 or user in choice and choice2:
    print("your password is medium")
elif user in choice2 and  choice1 and  choice:
    print("your password is strong")

when i run it
`Enter passwordlllllll
it doesnt tell the user whether the password is strong, medium or weak

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.