I suspect what you are talking about is a quine.
a Simple quine in python would be
s = r"print 's = r\"{0}\"'.format(s), '\n', s"
print 's = r\"{0}\"'.format(s), '\n', s
More Related Contents:
- how to scrape web page that is not written directly using HTML, but is auto-generated using JavaScript? [closed]
- TypeError: ‘NoneType’
- How can I represent an ‘Enum’ in Python?
- Concatenate strings from several rows using Pandas groupby
- TypeError: unsupported operand type(s) for -: ‘str’ and ‘int’
- What is setup.py?
- Python : no module named selenium
- Why is Python 3.x’s super() magic?
- Moving Average Pandas
- How can I periodically execute a function with asyncio?
- NameError: global name ‘unicode’ is not defined – in Python 3
- Installing scipy in Python 3.5 on 32-bit Windows 7 Machine
- How to run pip from different versions of python using the python command?
- How to melt 2 columns at the same time?
- i am sending commands through serial port in python but they are sent multiple times instead of one
- Why is there no xrange function in Python3?
- Get all keys of a nested dictionary [duplicate]
- Type hints when unpacking a tuple?
- CSS not loading wrong MIME type Django [duplicate]
- What is “pkg-resources==0.0.0” in output of pip freeze command
- Sorting by absolute value without changing to absolute value
- Why isn’t .ico file defined when setting window’s icon?
- How to share numpy random state of a parent process with child processes?
- Printing result of the zip() function in Python 3 gives “zip object at ” [duplicate]
- FutureWarning: The default value of regex will change from True to False in a future version
- Check if rows in one dataframe exist in another dataframe
- Multiple keys per value
- Python: can’t assign to literal
- What is internal representation of string in Python 3.x
- Which of the 4 ways to call super() in Python 3 to use?