QuestionQ98Verified/Miscellaneous (List Comprehensions, Lambdas, Closures, I/O)Copy linkReport a problemAsk AstroTutorSave questionWhich of the following expressions evaluate to True?Choose twoA'dcb' not in 'abcde'[::-1]B'True' not in 'False'Cstr(1-1) in '0123456789'[:2]D'phd' in 'alpha'Show AnswerAnswerExplanationString membership tests check for contiguous substrings. 'True' is not contained in 'False', and str(1-1) evaluates to '0', which is contained in '0123456789'[:2] (the string '01').Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion