Q. What is the output of ‘abc’.find(‘b’)?

A
-1
C
1
D
2
Solution:

find(‘b’) returns the index 1 where ‘b’ is found in ‘abc’.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!