QuestionQ98

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

Which of the following expressions evaluate to True?

Choose two
Explanation

String 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').

Community Discussion

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