What is the output of the following code ?
>>> s = "This is Python and it is easy" >>> s.find('is'), s.rfind('is')
(2, 22)
(2, 2)
(22, 22)
(2, -1)
find() gives lowest index and rfind() gives highest index of "is" respectively
Comment here: