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

Function main

src/gamesbyexample/spongecase.py:14–27  ·  view source on GitHub ↗

Run the Spongecase program.

()

Source from the content-addressed store, hash-verified

12
13
14def main():
15 """Run the Spongecase program."""
16 print('''sPoNgEtExT, bY aL sWeIGaRt Al@iNvEnTwItHpYtHoN.cOm
17
18eNtEr YoUr MeSsAgE:''')
19 spongecase = englishToSpongecase(input('> '))
20 print()
21 print(spongecase)
22
23 try:
24 pyperclip.copy(spongecase)
25 print('(cOpIed SpOnGeCasE to ClIpbOaRd.)')
26 except:
27 pass # Do nothing if pyperclip wasn't installed.
28
29
30def englishToSpongecase(message):

Callers 1

spongecase.pyFile · 0.70

Calls 1

englishToSpongecaseFunction · 0.85

Tested by

no test coverage detected