I'm having a problem of writing a function find_substr that takes two arguments as input: a substring and a string. And searches for substring and returns a tuple representing the (start, stop) of the substring.
For example
find_substr("plan", "I plan to join summer camp")
Output:
(2, 6)
find_substr("su", "summer vacation")
Output:
(0, 2)
Which string methods I have to use to search for string and convert it to tuple?