Reputation: 2087
Is comparing two characters (that is one character str
) in Python (3.x if that matters) well defined?
or do I have to make an explicit conversion?
In other words, is:
'a' > 'b'
the same as:
ord('a') > ord('b')
Upvotes: 3
Views: 361