Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- # Hackertext
- # Prints the sequence to display the given text as hackertext
- # Made by usdcollector@niu.moe
- # License: MIT License
- import argparse
- options_parser = argparse.ArgumentParser(description="Print given text as a hackertext emote string.")
- options_parser.add_argument("words", nargs="*")
- args = options_parser.parse_args()
- out = ""
- for word in args.words:
- for c in str(word):
- if c.lower() in 'abcdefghijklmnopqrstuvwxyz':
- out += ":hacker_" + c.lower() + ": "
- else:
- out += " "
- out += " "
- print(out)
Add Comment
Please, Sign In to add comment