Advertisement
isimpforobama

Untitled

Sep 26th, 2022
948
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | Source Code | 0 0
  1. passwordinput = str(input("Enter a  Password: "))
  2. points = 0
  3. for char in passwordinput:
  4.     if char in "!@#$%^&*\(\)\{\}\"\'\;\:1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ":
  5.         points += 1
  6. if points in range(3, 5):
  7.     print(f"The Password : {passwordinput} : is : Passible")
  8. if points in range(6, 8):
  9.     print(f"The Password : {passwordinput} : is : Good")
  10. if points in range(9, 20):
  11.     print(f"The Password : {passwordinput} : is : Strong")
  12. if points > 20:
  13.     print(f"The Password : {passwordinput} : is : Un-Crackable")
  14. elif points < 3:
  15.     print(f"The Password : {passwordinput} : is : Not Strong Enough")
  16. print(points)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement