#K14016. Strong Password Validator
Strong Password Validator
Strong Password Validator
You are given a password string. Your task is to check whether the password is strong based on the following criteria:
- The length of the password must be at least 8 characters, i.e. $|password| \ge 8$.
- The password must contain at least one lowercase letter (
a-z
). - The password must contain at least one uppercase letter (
A-Z
). - The password must contain at least one digit (
0-9
). - The password must include at least one special character from the set:
!@#$%^&*()-+
.
If the password meets all the criteria, output True
; otherwise, output False
.
inputFormat
The input consists of a single line which contains the password string.
outputFormat
Output a single line: 'True' if the password is strong based on the criteria, or 'False' otherwise.## sample
Aa1!\n
False\n