adplus-dvertising
frame-decoration

Question

What will be displayed by print(ord(‘b’) – ord(‘a’)) ?

a.

0

b.

1

c.

-1

d.

2

Posted under Strings in Python Python

Answer: (b).1

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be displayed by print(ord(‘b’) – ord(‘a’)) ?