Which of the following type conversion function in the Python language , is…

2024

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

  1. A.

    tuple ()

  2. B.

    dict ()

  3. C.

    set ()

  4. D.

    ord ()

Attempted by 102 students.

Show answer & explanation

Correct answer: D

In Python, `ord()` converts a character into its integer Unicode code point.

Explore the full course: Rssb Senior Computer Instructor