QuestionQ58Verified/Miscellaneous (List Comprehensions, Lambdas, Closures, I/O)Copy linkReport a problemAsk AstroTutorSave questionWhich of the following expressions evaluate to True?Choose twoA'abc'.upper() < 'abc'B'1'+'2' * 2 != '12'C3 * 'a' < 'a' * 2D11 == '011'Show AnswerAnswerExplanationString comparisons are lexicographic and case-sensitive, so 'ABC' < 'abc' evaluates to True. Also, string multiplication is evaluated before string concatenation: '1' + '2' * 2 produces '122', which is not equal to '12'.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion