how to Password reset program
Password reset program
Only accept a new password if it is:
- At least eight characters long
- Has lower case and upper case letters.
- Contains a number
password='coder100s_strong_passworD' print(len(password) > 8 and password.lower() != password and any(chr.isdigit() for chr in password))
ok basically its a and condition.
The first one checks the length
the second checks if it is different cased, because a Capital will never equal a capital.
The third checks if there was a number.