pw = "Python123"

has_lower = False
has_upper = False
has_digit = False

for ch in pw:
    if ch.islower():
        has_lower = True
    elif ch.isupper():
        has_upper = True
    elif ch.isdigit():
        has_digit = True

answer = has_lower and has_upper and has_digit
print(answer)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: