Explanation: ascii value of b is one more than a. hence the output of this code is 98-97, which is equal to 1.
Q. What will be displayed by print(ord(‘b’) – ord(‘a’))?
β
Correct Answer: (B)
1
Explanation by: Mr. Dubey
ascii value of b is one more than a. hence the output of this code is 98-97, which is equal to 1.
Discussion
Question Analytics
455
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
93%
Success Rate