Quiz on Python ASCII Function



1. What does the Python 'ascii()' function do?
2. What is the output of ascii('Hello')?
3. Which of the following is true about the ascii() function?
4. If you pass a list [1, 'abc', 3.5] to the ascii() function, what will be the output?
5. What will ascii(chr(128)) return?

Advertisements