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?
- A.
tuple ()
- B.
dict ()
- C.
set ()
- D.
ord ()
Attempted by 102 students.
Show answer & explanation
Correct answer: D
In Python, `ord()` converts a character into its integer Unicode code point.