Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT str1 = " PLEASEHELPIMTRAPPED " NEW_LINE str2 = " INAKICKSTARTFACTORY " NEW_LINE length = len ( str1 ) NEW_LINE print ( calculateSubString ( str1 , str2 , length ) ) NEW_LINE DEDENT