2 ms·
Sure, which is why I said "way easier". If you were assigning quine as a python homework exercise, and you wanted an "exec" solution ruled out, you would need t
by xamuel 6y ago
Sure, which is why I said "way easier". If you were assigning quine as a python homework exercise, and you wanted an "exec" solution ruled out, you would need to explicitly rule it out in the text of the exercise.
>If python had a function called "quine()"...
If we wanted to REALLY trivialize it, just use the blank program (which prints nothing, thus prints itself). :)