from string import punctuation for in punctuations replace( ''example here is program that counts how many times certain word occurs in string from string import punctuation input'enter string'for in punctuations replace( '' lower( split(word input'enter word'print(word'appears ' count(word)'times 'optional argument the split method takes an optional argument that allows it to break the string at places other than spaces here is an examples '- print( split'')[' '' '' '' ' join the join method is in some sense the opposite of split it is string method that takes list of strings and joins them together into single string here are some examplesusing the list [' ',' ',' 'operation result join(la 'join(labc 'join(labc '***join(la*** *** example write program that creates an anagram of given word an anagram of word uses the same letters as the word but in different order for instancetwo anagrams of the word there are three and ether don' worry about whether the anagram is real word or not