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