password = input(str("Please enter a password with a capital letter and a number: "))
for char in password:
if password.islower() and "1234567890" not in password:
print("Your password will need to have at least one number and at least one capitalized letter")
password = input("Please enter another password: ")
**The error phrase will print if a password is entered without a number or capital, but if a capital is used in the input the error string doesn't run even though the input is still missing a number. Same for if the input has a number but not a capital letter. I want both a capital letter and a number to be required for the input as you can probably tell. Thanks.
edit: I don't want to know how to make a password requirement program. I specifically want to know why the "and not" is not working.**