0
Why print("a"<"z") return True in python, explain please
3 Answers
+ 9
Because strings are converted to their respective Unicode values. And "z" unicode value is greater than "a" hence it prints True.
+ 3
Here ascii code is compared and ascii code of "a" is 97 and "z" is 122
Hence it's returns True