Skip to content

Instantly share code, notes, and snippets.

@staaldraad
Last active May 21, 2021 12:49
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save staaldraad/df29bd1a840cb53ed2819c1980143166 to your computer and use it in GitHub Desktop.
Save staaldraad/df29bd1a840cb53ed2819c1980143166 to your computer and use it in GitHub Desktop.
#!/usr/env/python
print("Converts a string to the {QUOTE} Field code")
st = raw_input("String to convert: ")
v = map(lambda y: "%s"%ord(y),st)
print("{ QUOTE %s }"%' '.join(v))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment