why does the value of this code always return true and not false/else statement (for a password checker program)? : This piece of code uses isdigit() and islower() which both check if a string includes only numbers(isdigit) or only lowercase letters(islower). If the string given through password contains only numbers or lowercase letters the value should return true and print "only numbers" if the string only contains numbers or "only letters" if the string contains only letters, which it does, however if the password contains numbers and letters for example "12345qwerty" it should return the value false right and go onto the elif statement to check if it has a number or letter included to say add 5 points and if it still doesn't then it will say try again but it doesn't it stil returns the value as rue and print the if statements argument which doesnt make sense since the password "12345qwerty" contain both letters and numbers and should be returned as false. could someone explain why its doing this and solution's with it. Thank you.

    import re
    password = input("")
    if password.isdigit():
        print("only numbers ")
    elif re.search("[1-9]", password):
        print("thats 5 points")
    else:
        print("try again")

    if password.islower():
       print("only letters ")
    elif re.search("[a-z]", password):
       print("thats 5 points")
    else:
       print("try again")

