One interesting thing was she showed a quine in one of her slides, and it was much shorter than the one I came up with. I think she said the source of it was Godel, Escher, Bach.
Here it is:
To me this is a shorter, elegant quine. Still have to figure out how to arrive at it, though.
a = 'print "a=", repr(a);print "exec(a)"'
exec(a)
No comments:
Post a Comment