[CS50P] W5, Re-requesting a vanity plate: how to make sense of this error

https://preview.redd.it/cumpu7jao9e91.png?width=2100&format=png&auto=webp&s=0c9a7f3a06229f7504cd82a0fa3fc484d963456a

Both programs (vanity plates and test_plates) pass the CS50P check, and I know for a fact that it works too.

But when I insert "assert is_valid("PI!14") == False" (because it should be, and my code returns so when I actually run it manually), I get an assertion error. I thought maybe I had messed something up in condition2, which is the function pertaining to punctuation that is called by is_valid, so I manually tested it in another file by making it print the result of condition2("PI!14") (slightly configured in the image).

It indeed prints "False" meaning that is_valid("PI!14") should be false, at least to my understanding. What am I doing wrong?

**for reference, I do RETURN the result of condition2 in my actual code instead of printing it, so that cannot be the case.