Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

the following line of code returns the ascii code for the given string.…

Question

the following line of code returns the ascii code for the given string. what is missing in the program below in order to have the output shown? >>> ____(\c\) 99 ascii asc ord chr

Explanation:

Brief Explanations

In Python, the ord() function is used to get the ASCII code of a single - character string. Here, we need to find the function that returns the ASCII code for the character "c". The ord function does exactly that.

Answer:

C. ord