()
| 12 | |
| 13 | |
| 14 | def main(): |
| 15 | print('''Igpay Atinlay (Pig Latin) |
| 16 | By Al Sweigart al@inventwithpython.com |
| 17 | |
| 18 | Enter your message:''') |
| 19 | pigLatin = englishToPigLatin(input('> ')) |
| 20 | |
| 21 | # Join all the words back together into a single string: |
| 22 | print(pigLatin) |
| 23 | |
| 24 | try: |
| 25 | pyperclip.copy(pigLatin) |
| 26 | print('(Copied pig latin to clipboard.)') |
| 27 | except NameError: |
| 28 | pass # Do nothing if pyperclip wasn't installed. |
| 29 | |
| 30 | |
| 31 | def englishToPigLatin(message): |
no test coverage detected