In Python, you can do this:
"ab" > "ac"
which returns False
.
In Mathematica, it doesn't evaluate.
But why? These are literal strings, not symbols.
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityIn Python, you can do this:
"ab" > "ac"
which returns False
.
In Mathematica, it doesn't evaluate.
But why? These are literal strings, not symbols.
AlphabeticOrder
can compare strings alphabetically (or by other conventions used in dictionaries by various languages).
1>2
works, there's also no indication of what is comparing two numbers. $\endgroup$