PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Support
Please support this website.
Visit the Amazon using this affiliate link
. There won't be any difference in your purchage, we will get some commission for every purchase you make.
Advertise with us
Python Multiple Choice Questions
To check whether string s1 contains another string s2, use
A. s1.__contains__(s2)
B. s2 in s1
C. s1.contains(s2)
D. si.in(s2)
Show Answer
Next Question
Correct Answer:
A
Explanation: s2 in s1 works in the same way as calling the special function __contains__ .
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap