QuestionQ83

VerifiedMiscellaneous (List Comprehensions, Lambdas, Closures, I/O)

Which of these expressions evaluate to True?

Choose three
Explanation

An empty triple-quoted string has length 0; an escaped single quote is a one-character string; and adding 1 to ord('A') and converting back with chr() yields 'B'. By contrast, ord('Z') - ord('z') is -32, whereas ord('0') is 48.

Community Discussion

No comments yet. Be the first to start the discussion!