Certified Associate in Python Programming (PCAP) — Question 132

Which of the following expressions evaluate to True? (Choose two.)

Answer options

Correct answer: B, D

Explanation

The correct answers are B and D. The expression B evaluates to True because 'in' is indeed a substring of 'in'. Option D is also True as 'T' (the uppercase version of 't') is present in 'Thames'. Options A and C are incorrect as they do not satisfy the substring condition.