MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / main

Function main

src/gamesbyexample/piglatin.py:14–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def main():
15 print('''Igpay Atinlay (Pig Latin)
16By Al Sweigart al@inventwithpython.com
17
18Enter 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
31def englishToPigLatin(message):

Callers 1

piglatin.pyFile · 0.70

Calls 1

englishToPigLatinFunction · 0.85

Tested by

no test coverage detected