QuestionQ102

VerifiedStrings

Which of the following expressions evaluate to True?

Explanation

The escaped literal '\'' represents a string containing exactly one single-quote character, so len('\'') == 1 evaluates to True. The other expressions evaluate to False: the triple-quoted string is empty, the ordinal difference is 32 rather than 48, and incrementing 'a' produces lowercase 'b', not uppercase 'B'.

Community Discussion

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