translate them into pig latinpiglatin [ list of the words in pig latin for word in message split()separate the non-letters at the start of this wordprefixnonletters 'while len(word and not word[ isalpha()prefixnonletters +word[ word word[ :if len(word= piglatin append(prefixnonletterscontinue we need each word to be its own stringso we call message split(to get list of the words as separate strings the string 'my name is al sweigart and am , years old would cause split(to return ['my''name''is''al''sweigart''and'' ''am'' , ''years''old 'we need to remove any non-letters from the start and end of each word so that strings like 'old translate to 'oldyay instead of 'old yaywe'll save these non-letters to variable named prefixnonletters separate the non-letters at the end of this wordsuffixnonletters 'while not word[- isalpha()suffixnonletters +word[- word word[:- loop that calls isalpha(on the first character in the word will determine if we should remove character from word and concatenate it to the end of prefixnonletters if the entire word is made of non-letter characterslike ' , 'we can simply append it to the piglatin list and continue to the next word to translate we also need to save the non-letters at the end of the word string this code is similar to the previous loop nextwe'll make sure the program remembers if the word was in uppercase or title case so we can restore it after translating the word to pig latinremember if the word was in uppercase or title case wasupper word isupper(wastitle word istitle(word word lower(make the word lowercase for translation for the rest of the code in the for loopwe'll work on lowercase version of word manipulating strings