piglatin append(prefixnonletterscontinue separate the non-letters at the end of this wordsuffixnonletters 'while not word[- isalpha()suffixnonletters +word[- word word[:- remember if the word was in uppercase or title case wasupper word isupper(wastitle word istitle(word word lower(make the word lowercase for translation separate the consonants at the start of this wordprefixconsonants 'while len(word and not word[ in vowelsprefixconsonants +word[ word word[ :add the pig latin ending to the wordif prefixconsonants !''word +prefixconsonants 'ayelseword +'yayset the word back to uppercase or title caseif wasupperword word upper(if wastitleword word title(add the non-letters back to the start or end of the word piglatin append(prefixnonletters word suffixnonlettersjoin all the words back together into single stringprint(join(piglatin)let' look at this code line by linestarting at the topenglish to pig latin print('enter the english message to translate into pig latin:'message input(vowels (' '' '' '' '' '' 'firstwe ask the user to enter the english text to translate into pig latin alsowe create constant that holds every lowercase vowel letter (and yas tuple of strings this will be used later in our program