1.

Given a string example=”hello” what is the output of example.count(‘l’)?(a) 2(b) 1(c) None(d) 0

Answer» Right answer is (a) 2

Explanation: l occurs twice in hello.


Discussion

No Comment Found