How to write your first Quine program

A quick guide to self replicating programs in Python

David Bertoldi
Towards Data Science
5 min readJul 26, 2019

--

A quine-relays: a Python program generates a Java program that generates a Ruby program that generates the first Python program

Aim of this guide is to show how to write a program that outputs its own source code with no input. This family of programs is called Quine.

Why is this interesting? Well, because self-referencing stuff tends to be always interesting :)

--

--