PYTHON CIRCLE
Practice
Python Books
Archive
Tools
Contact
Subscribe
Menu
Practice
Python Books
Archive
Tools
Contact
Subscribe
1000 Python Questions
Get 1 Python question daily. Join this telegram channel
https://t.me/python1000questions
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__ .
SUBSCRIBE
Please subscribe to get the latest articles in your mailbox.
SUBSCRIBE
Please subscribe to get the latest articles in your mailbox.
© 2017-2020 Python Circle
Contact
Sponsor
Archive
Sitemap