PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Blog available for sell
This blog is available for sale. Please 'contact us' if interested.
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__ .
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap