The program that can print out its own code is called Quine.
Here is a line of Python quine:
_= ' _=%r;print _%%_ ';p rint _%_
Some people say that there is a semicolon does not count a line, no semicolon version:
Print (Lambda x:x+str ((x,))) (' Print (lambda x:x+str ((x,)) ') ')
In fact, if you use the name of the program language +quine as the keyword to search, you can find a variety of language implementation of the Quine. For advocates of various languages, it is important to write an elegant quine, similar to the fact that each new language implements a bootstrap (compiler, interpreter) in the language itself to be presentable.
If you think that writing a simple quine can satisfy programmers, you are too young:
Github-mame/quine-relay:an Uroboros program with programming languages
This repo implements a quine ring in 100 languages:
I'll ask you, do you abuse?
A single line of Python's powerful features