How does python compare strings via the inequality operators?
a = "cat"
b = "dog"
a < b
True
What properties of the strings results in a < b == True
?
I've tried few other examples but still have no idea how Python compares them. Does Python compares strings like integers?