Advertisement
Guest User

Untitled

a guest
May 1st, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minimum_password_length = 8
  2.  
  3. user_name = input("Please enter your first name: ")
  4.  
  5. password = input("{}, please enter the password: ".format(user_name))
  6.  
  7. password_length = len(password)
  8.  
  9. if password_length < minimum_password_length:
  10.     print("The password [{}] does not meet the security standard.".format(password))        
  11. elif password[0] == password[-1]:
  12.     print("The password [{}] does not meet the security standard.".format(password))
  13. elif password.isalnum() == False:
  14.     print("The password [{}] does not meet the security standard.".format(password))  
  15. else:
  16.     print("The password [{}] meets the security standard.".format(password))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement