Question discussion

Which of the following type conversion function in the Python language, is used to convert a character into an integer?

3477Medium DSSSB TGT Computer Science 0 replies 2 views
0

Which of the following type conversion function in the Python language, is used to convert a character into an integer?

  • Atuple ( )
  • Bdict ( )
  • Cset ( )
  • Dord ( )
Correct answer: D

Explanation

ord() converts a character into its integer (Unicode/ASCII) value.

Discussion 0

Nobody has replied yet. Start the discussion!