Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minimum_password_length = 8
- user_name = input("Please enter your first name: ")
- password = input("{}, please enter the password: ".format(user_name))
- password_length = len(password)
- if password_length < minimum_password_length:
- print("The password [{}] does not meet the security standard.".format(password))
- elif password[0] == password[-1]:
- print("The password [{}] does not meet the security standard.".format(password))
- elif password.isalnum() == False:
- print("The password [{}] does not meet the security standard.".format(password))
- else:
- print("The password [{}] meets the security standard.".format(password))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement