#K41942. Password Validator
Password Validator
Password Validator
Write a program to determine whether a given password is valid according to the following requirements:
- The password must be at least 6 characters long.
- The password must contain at least one uppercase letter.
- The password must contain at least one lowercase letter.
- The password must contain at least one digit.
- The password must contain at least one special character from the set \(\{!@#$%^&*()-+\}\).
Your program should read a single line from standard input representing the password, and then output either True
or False
to standard output indicating whether the password is valid or not.
inputFormat
The input consists of a single line containing the password string. It may include any visible ASCII characters.
outputFormat
Output a single line: True
if the password satisfies all the conditions; otherwise, output False
.## sample
Aa1!aa
True
</p>