Run the Spongecase program.
()
| 12 | |
| 13 | |
| 14 | def main(): |
| 15 | """Run the Spongecase program.""" |
| 16 | print('''sPoNgEtExT, bY aL sWeIGaRt Al@iNvEnTwItHpYtHoN.cOm |
| 17 | |
| 18 | eNtEr 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 | |
| 30 | def englishToSpongecase(message): |
no test coverage detected