the partition(string method can split string into the text before and after separator string this method searches the string it is called on for the separator string it is passedand returns tuple of three substrings for the "before,"separator,and "aftersubstrings enter the following into the interactive shell'helloworld!partition(' '('hello'' ''orld!''helloworld!partition('world'('hello''world''!'if the separator string you pass to partition(occurs multiple times in the string that partition(calls onthe method splits the string only on the first occurrence'helloworld!partition(' '('hell'' ''world!'if the separator string can' be foundthe first string returned in the tuple will be the entire stringand the other two strings will be empty'helloworld!partition('xyz'('helloworld!'''''you can use the multiple assignment trick to assign the three returned strings to three variablesbeforesepafter 'helloworld!partition('before 'hello,after 'world!the partition(method is useful for splitting string whenever you need the parts beforeincludingand after particular separator string justifying text with the rjust()ljust()and center(methods the rjust(and ljust(string methods return padded version of the string they are called onwith spaces inserted to justify the text the first argument to both methods is an integer length for the justified string enter the following into the interactive shell'hellorjust( hello'hellorjust( hello'helloworldrjust(