ord() function: What is the output ord(‘A’)?

  • 64
  • 65
  • Upper
  • Lower

ord() returns the ASCII value of the character passed as an argument to it. The ASCII equivalent of ‘A’ is 65. 

Comments