QuestionQ99Verified/StringsCopy linkReport a problemAsk AstroTutorSave questionWhich of these expressions evaluate to True?Choose twoA'xYz'.lower() > 'XY'B'8'+'8' ! = 2 * '8'Cfloat ('3.14') == str('3.' + '14')D121 + 1 == int('1' + 2 * '2')Show AnswerAnswerExplanation'xYz'.lower() returns 'xyz'; string comparisons are lexicographic and case-sensitive, making it greater than 'XY'. In the other true expression, 2 * '2' produces '22', which concatenates with '1' to make '122'; int('122') is 122, equal to 121 + 1.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion