QuestionQ120Verified/Miscellaneous (List Comprehensions, Lambdas, Closures, I/O)Copy linkReport a problemAsk AstroTutorSave questionWhich of these expressions evaluate to True?Choose twoA'in' in 'in'B'in' in 'Thames'C'in not' in 'not'D't'.upper() in 'Thames'Show AnswerAnswerExplanationFor strings, in tests whether the left-hand string is a substring of the right-hand string. A string contains itself, and 't'.upper() produces 'T', which is present in 'Thames'.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion