Vidyalelo
Python · Q145

MCQs for Python Strings: Exam

Programming · Python · question 145

Q145

To check whether string s1 contains another string s2, use . . . . . . . .

A.
s1.__contains__(s2)
Answer
B.
s2 in s1
C.
s1.contains(s2)
D.
si.in(s2)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board