McqMate
| Q. |
Given a string example=”hello” what is the output of example.count(‘l’)? |
| A. | 2 |
| B. | 1 |
| C. | none |
| D. | 0 |
| Answer» A. 2 | |
| Explanation: l occurs twice in hello. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet