Given a string example=”hello” what is the output of example.count(l)
A. 2
B. 1
C. None
D. 0
Answer:A
Given a string example=”hello” what is the output of example.count(l)
A. 2 B. 1 C. None D. 0
Explanation:l occurs twice in hello. 7. What is the output of the following code ?