First I tried this:
print('a' > 'A')
The above statement returns true
Then I tried this:
print('A' > 'a')
The above statement returns false
What is the reason?
>Solution :
According to the ASCII table, value of ‘A’ is 65 and ‘a’ is 97.
So if u compare a single character between a-z,A-Z Python takes it’s ASCII value.
You can check the ASCII table from here