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.
1.8k
0
Do you find this helpful?
4

Discussion

No comments yet