QuestionQ13

VerifiedMiscellaneous (List Comprehensions, Lambdas, Closures, I/O)

Which of these expressions evaluate to True?

Choose two
Explanation

Python string membership tests are case-sensitive and determine whether one string occurs as a substring of another. 'not' not in 'in' is true because 'not' does not occur in 'in'. Also, 't'.upper() produces 'T', and 'T' occurs in 'Thames'.

Community Discussion

No comments yet. Be the first to start the discussion!