Only using Python string methods and slicing (without using aloop), write a Python function to return all the characters up to agiven phrase (a small string) of a given string (a large string ortext) excluding the given phrase. Here you must assume that thereis one and only given phrase in your string. Note that yourfunction must be capable of returning the portion either from thebeginning of the string to the given phrase or the portion fromafter the phrase to the end of the string based on your choice. Forexample for the text “You know what to do: practice.“,depending on users
OR
OR