QuestionQ83Verified/Miscellaneous (List Comprehensions, Lambdas, Closures, I/O)Copy linkReport a problemAsk AstroTutorSave questionWhich of these expressions evaluate to True?Choose threeAlen("""""") == 0Blen(''') == 1Cord("Z") - ord("z") == ord("0")Dchr(ord('A') + 1) == 'B'Show AnswerAnswerExplanationAn 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.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion