when you run piglatin pythe output will look like thisigpay atinlay (pig latinby al sweigart al@inventwithpython com enter your messagethis is very serious message isthay isyay ayay eryvay erioussay essagemay (copied pig latin to clipboard how it works the englishtopiglatin(function takes string of english text and returns string of its pig latin equivalent the main(function only gets called if user runs the program directly you could also write your own python programsimport piglatin py with an import piglatin statementthen call iglatin englishtopiglatin(to make use of the englishtopiglatin(function this reuse technique can save you the time and effort required to reinvent this code yourself """pig latinby al sweigart al@inventwithpython com translates english messages into igpay atinlay view this code at tagsshortword"" try import pyperclip pyperclip copies text to the clipboard except importerror pass if pyperclip is not installeddo nothing it' no big deal vowels (' '' '' '' '' '' ' def main() print('''igpay atinlay (pig latin by al sweigart al@inventwithpython com enter your message:''' piglatin englishtopiglatin(input('') join all the words back together into single string print(piglatin try pyperclip copy(piglatin print('(copied pig latin to clipboard )' except nameerror pass do nothing if pyperclip wasn' installed project #