I have two strings, Right and banana. When I compare, Right < banana the result is given as True. I understand that Python compares letter by letter.
(1) But then these two strings are not in the same length. How would this be possible?
(2) I looked up the ASCII, then I tried the following: R < b, and the result is True; i < a, and the result is False, and so on. Clearly we have False and True in comparing letter by letter, Right < banana. How does Python determine that the final result is True?
I did look up a few sources online, and couldn't find answer. I've just started to learn Python as my first programming language, so maybe I didn't know where to look...