Skip to content

Instantly share code, notes, and snippets.

@rickumali
Created November 7, 2021 13:31
Show Gist options
  • Save rickumali/7451680e3191c98e90ce13f3ed210dd9 to your computer and use it in GitHub Desktop.
Save rickumali/7451680e3191c98e90ce13f3ed210dd9 to your computer and use it in GitHub Desktop.
ASCII Code Parser (Python)
072 069 076 076 079 032 087 079 082 076 068
import re
import locale
message = []
with open("codez.txt") as f:
for line in f:
message += re.findall(r'\d\d\d', line)
print(''.join([chr(locale.atoi(x)) for x in message]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment