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
so essentially abcd is equivalent to 1,2,3,4.which means "ab"==1+2 and
" cd"==3+4
OK got it
0
ascii of abcd>ascii of abc