McqMate
| Q. |
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) |
| Answer» A. s1. contains (s2) | |
| Explanation: s2 in s1 works in the same way as calling the special function contains . | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet