+ 1

a="python" b="pythoN" print(a>b)

Explanation why the output is true?

17th Feb 2022, 12:01 PM
yash kurale
2 Answers
+ 5
>>> "a" > "A" True >>> ord("a") 97 >>> ord("A") 65 >>>
17th Feb 2022, 12:06 PM
Gabriel
Gabriel - avatar
+ 4
ASCII value of 'n' is greater than 'N'
17th Feb 2022, 12:04 PM
Avinesh
Avinesh - avatar