What is the output of the following code ?
>>> s = "This is Python and it is easy" >>> s.partition("py")
('This is', ' Python and it is easy', '')
('This is ', 'Python and ', 'it is easy')
('', '', 'This is Python and it is easy')
('This is Python and it is easy', '', '')
Refer to - https://docs.python.org/3/library/stdtypes.html#str.partition
Comment here: