Skip to content

Instantly share code, notes, and snippets.

@trvrm
Created January 9, 2017 13:52
Show Gist options
  • Save trvrm/cb0412d80e8e0ce7f0c46725a83dca3e to your computer and use it in GitHub Desktop.
Save trvrm/cb0412d80e8e0ce7f0c46725a83dca3e to your computer and use it in GitHub Desktop.
A simpler quine, using list concatenation rather than Gödel numbering. Run in Python3
l= ['p', 'r', 'i', 'n', 't', '(', "'", 'l', '=', "'", ',', 'l', ')', '\n', 'p', 'r', 'i', 'n', 't', '(', '"', '"', '.', 'j', 'o', 'i', 'n', '(', 'l', ')', ')']
print('l=',l)
print("".join(l))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment