Home / Engineering / Problem Solving and Python Programming / Question

Q.) Which of the following functions does not throw an error?

(A) ord()
(B) ord(‘ ‘)
(C) ord(”)
(D) ord(“”)
Correct answer - Option (B) -
ord(‘ ‘)

Explanation:
 the function ord() accepts a character. hence ord(), ord(”) and ord(“”)

Share

Discusssion

Login to discuss.