Certified Associate in Python Programming (PCAP-31-03) — Question 39

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

Answer options

Correct answer: A, D

Explanation

Option A is correct because the substring 'in' is indeed found within the string 'in'. Option D is also correct as 't'.upper() results in 'T', which is present in 'Thames'. Options B and C are incorrect as 'in' is not a substring of 'Thames' and 'in not' is not found in 'not', respectively.