Last active
January 2, 2020 23:06
-
-
Save lyxal/a8b0ddc23659452288f30524ad714c7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Comp -> Keg | |
# Because it kinda looks the same | |
output = "" | |
source = """Place your program here""" | |
for char in source: | |
if char == "#": | |
output += ":," | |
elif char == "£": | |
output += ":." | |
elif char == "'": | |
output += "?" | |
elif char == ";": | |
output += "¿" | |
elif char == "{": | |
output += "{:|" | |
elif char == "!": | |
output += "⑨" | |
elif char == '"': | |
output += ";" | |
elif char == "\\": | |
output += "‡" | |
elif char == "[": | |
output += "=[" | |
elif char == "(": | |
output += "≠[" | |
elif char == ")": | |
output += "]" | |
elif char == "@": | |
output += "?" | |
elif char == "<": | |
output += "{:|" | |
elif char == ">": | |
output += "}" | |
elif char == "^": | |
output += ":" | |
elif char == "%": | |
output += "_" | |
elif char == "_": | |
output += "00/" #Div by 0 seems easiest way to do that | |
elif char in "0123456789]}+-/*": | |
output += char | |
elif char == " ": | |
output += "\t" | |
else: | |
output += "\\" + char | |
print(output) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment