Poetry in programming: a Quine, suitable for birthdays

A program that emits its own python source code when run, i.e. a Quine.

a="a= ;print a[0:2]+chr(34)+a+chr(34)+a[3:]#Another happy return!";print a[0:2]+chr(34)+a+chr(34)+a[3:]#Another happy return!

A version in particular for biologists with added emphasis on the cycle of life:

a="a= ;print a[0:2]+chr(34)+a+chr(34)+a[3:]#Keep studying the miracle of life!";print a[0:2]+chr(34)+a+chr(34)+a[3:]#Keep studying the miracle of life!

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *


Please simplify: \((6x) dx=\)