People say you shouldn't compare apples and oranges but it seems to work fine for me in Python 3.14, I don't see what the issue is...
Hah! Lack of concatenation with + deceived me about it being possible to do "math" with strings, er, character vectors in R. I don't think I ever saw someone comparing them with greater-than, too. Must play around in the REPL some more!!