Skip to content

Instantly share code, notes, and snippets.

@lyxal
Last active January 2, 2020 23:06
Show Gist options
  • Save lyxal/a8b0ddc23659452288f30524ad714c7a to your computer and use it in GitHub Desktop.
Save lyxal/a8b0ddc23659452288f30524ad714c7a to your computer and use it in GitHub Desktop.
# 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