0

I am learning about logical operators in Python. Why does the above expression evaluates to True.

sentence
  • 8,213
  • 4
  • 31
  • 40

1 Answers1

2

Because each Unicode character is associated with a code point value:

ord('a') is 97

and

ord('A') is 65

See Unicode HOWTO and ord()

sentence
  • 8,213
  • 4
  • 31
  • 40