0
How does comparing strings of different lengths work?
Why does print("abcd" > "abc") return True?
3 Answers
+ 2
It's the alphabetical order. "abcd" contains the "abc" plus the "d" so it is bigger than the "abc" and thus it returns as true. hope it helped a bit.
0
ascii of abcd>ascii of abc