Johny19
Johny19

Reputation: 5582

What makes this snippet not a strict quine?

Does someone know why this is not a strict quine ?

_0='_0=%r;print _0%%_0';print _0%_0

Upvotes: 0

Views: 124

Answers (1)

ramblinjan
ramblinjan

Reputation: 6694

The print statement appends a newline during execution, so you would need to include a newline in the snippet.

enter image description here

Upvotes: 5

Related Questions