_=\'_=%r;print _%%_\';print _%_
Is this the shortest possible python quine, or can it be done better? This one seems to improve on all the entrie
Even shorter:
print(__file__[:-3])
And name the file print(__file__[:-3]).py (Source)
print(__file__[:-3]).py
Edit: actually,
print(__file__)
named print(__file__) works too.