[CS50P] W5, Re-requesting a vanity plate: how to make sense of this error
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.