Maxs homepage

Main Branches

Contact   Publications   Talks   Grants   Teaching   Mathematics   Computer   Images   Private   Links  

A Python program, that prints itself (1)

#!/usr/bin/env python
x = """print '#!/usr/bin/env python'
print 'x = ""'+'"'+x+'""'+'"'
print x"""
print '#!/usr/bin/env python'
print 'x = ""'+'"'+x+'""'+'"'
print x