#C5863. Valid Password Checker
Valid Password Checker
Valid Password Checker
You are given a password string and your task is to determine whether the password is valid or not based on the following conditions:
- The length of the password must be at least 8 characters. That is, \( n \ge 8 \).
- The password must contain at least one uppercase letter, at least one lowercase letter, and at least one digit.
- The password must not contain any special characters from the set:
! @ # $ % ^ & * ( )
. - The password must not contain the substring "password" in any combination of upper or lower case letters.
Your program should read a single password string from standard input and output True
if the password is valid according to the rules, or False
otherwise.
inputFormat
The input consists of a single line containing a string password.
outputFormat
Output a single line: True
if the password is valid; otherwise, output False
.
Abcdefg1
True