Python program to check your password is strong or weak

In this program we are creating a set of password and taking input from user. 

If the password matched to our created password then it is weak password elase it is strong password.


If your password is weak then hacker can easily trace your password and steal your data.

Program:


x = input("Enter your password:")  

pass_set = {"app123", "pwww345", "tfr309", "hjk765", "ram23", "rakhi45"}

 if x in pass_set:

     print("Weak password") 

 else:

     print("Strong password")


pass_set.add(x)

print(pass_set)


Output:




Comments

Popular Posts