# Write a Python program to String till Substring # Python3 code to demonstrate# String till Substring# using partition()# initializing stringtest_string = "GeeksforGeeks is best for geeks"# initializing split wordspl_word = 'best'# printing original stringprint("The original string : " + str(test_string))# printing split stringprint("The split string : " + str(spl_word))# using partition()# String till Substringres = test_string.partition(spl_word)[0]# print resultprint("String before the substring occurrence : " + res)