Ad
def quine():
    q = '"' * 3
    s = """def quine():
    q = '"' * 3
    s = %s%s%s
    return s %% (q, s, q)
"""
    return s % (q, s, q)