The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #840
Given a string of length one, ord() returns an integer representing the Unicode code point of the character when the argument is a unicode object, or the value of the byte when the argument is an 8-bit string. In the options above, only the space character is recognized by ord() , the others will fail. (geeksforgeeks.org/ord-function-python)
Which one will not throw an exception?
— The Python Quiz (@thepythonquiz) January 21, 2021
ord(' ')
ord()
ord(")
ord("")
None of the above
π Comment the answer, like and retweet! #python
Question difficulty: π΅π΅π΅π΅π΅