the following into the interactive shell'join(['cats''rats''bats']'catsratsbatsjoin(['my''name''is''simon']'my name is simon'abcjoin(['my''name''is''simon']'myabcnameabcisabcsimonnotice that the string join(calls on is inserted between each string of the list argument for examplewhen join(['cats''rats''bats']is called on the 'stringthe returned string is 'catsratsbatsremember that join(is called on string value and is passed list value (it' easy to accidentally call it the other way around the split(method does the oppositeit' called on string value and returns list of strings enter the following into the interactive shell'my name is simonsplit(['my''name''is''simon'by defaultthe string 'my name is simonis split wherever whitespace characters such as the spacetabor newline characters are found these whitespace characters are not included in the strings in the returned list you can pass delimiter string to the split(method to specify different string to split upon for exampleenter the following into the interactive shell'myabcnameabcisabcsimonsplit('abc'['my''name''is''simon''my name is simonsplit(' '['my na'' is si''on' common use of split(is to split multiline string along the newline characters enter the following into the interactive shellspam '''dear alicehow have you beeni am fine there is container in the fridge that is labeled "milk experiment please do not drink it sincerelybob''spam split('\ '['dear alice,''how have you beeni am fine ''there is container in the fridge''that is labeled "milk experiment "''''please do not drink it ''sincerely,''bob'passing split(the argument '\nlets us split the multiline string stored in spam along the newlines and return list in which each item corresponds to one line of the string manipulating strings