To check whether string s1 contains s2, use
A. s1.__contains__(s2)
B. s1 in s2
C. s1.contains(s2)
D. si.in(s2)
Answer:A
To check whether string s1 contains s2, use
A. s1.__contains__(s2) B. s1 in s2 C. s1.contains(s2) D. si.in(s2)
Explanation:s1 in s2 works in the same way as calling the special function __contains__ .