What will be displayed by print(ord(‘b’) – ord(‘a’))?
A. 0
B. -1
C. 1
D. 2
Answer:C
What will be displayed by print(ord(‘b’) – ord(‘a’))?
A. 0 B. -1 C. 1 D. 2
Explanation: ASCII value of b is one more than a. Hence the output of this code is 98-97, which is equal to 1.