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

Function main

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

Source from the content-addressed store, hash-verified

12
13
14def main():
15 print(''&#x27;L3375P34]< (leetspeek)
16By Al Sweigart al@inventwithpython.com
17
18Enter your leet message:''&#x27;)
19 english = input('> ')
20 print()
21 leetspeak = englishToLeetspeak(english)
22 print(leetspeak)
23
24 try:
25 # Trying to use pyperclip will raise a NameError exception if
26 # it wasn't imported:
27 pyperclip.copy(leetspeak)
28 print('(Copied leetspeak to clipboard.)')
29 except NameError:
30 pass # Do nothing if pyperclip wasn't installed.
31
32
33def englishToLeetspeak(message):

Callers 1

leetspeak.pyFile · 0.70

Calls 1

englishToLeetspeakFunction · 0.85

Tested by

no test coverage detected