0

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

sentence
  • 7,017
  • 4
  • 29
  • 36

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
  • 7,017
  • 4
  • 29
  • 36