[Python] Shortest Python Quine?

Discussão em 'Python' iniciado por Stack, Fevereiro 1, 2025.

  1. Stack

    Stack Membro Participativo

    Python 2.x (30 bytes):

    _='_=%r;print _%%_';print _%_



    Python 3.x (32 bytes)

    _='_=%r;print(_%%_)';print(_%_)



    Is this the shortest possible Python quine, or can it be done better? This one seems to improve on all the entries on The Quine Page.

    I'm not counting the trivial 'empty' program.

    Continue reading...

Compartilhe esta Página