Re: Funny code

2019-09-26 Thread Albert-Jan Roskam
On 26 Sep 2019 10:28, Christian Gollwitzer wrote: Am 26.09.19 um 08:34 schrieb ast: > Hello > > A line of code which produce itself when executed > > >>> s='s=%r;print(s%%s)';print(s%s) > s='s=%r;print(s%%s)';print(s%s) > > Thats funny ! ==> Also impressive, a 128-language quine: https://git

Re: Funny code

2019-09-26 Thread Christian Gollwitzer
Am 26.09.19 um 08:34 schrieb ast: Hello A line of code which produce itself when executed >>> s='s=%r;print(s%%s)';print(s%s) s='s=%r;print(s%%s)';print(s%s) Thats funny ! This is called a "quine" and there exist several methods how to do this. https://en.wikipedia.org/wiki/Quine_(computin

Funny code

2019-09-25 Thread ast
Hello A line of code which produce itself when executed >>> s='s=%r;print(s%%s)';print(s%s) s='s=%r;print(s%%s)';print(s%s) Thats funny ! -- https://mail.python.org/mailman/listinfo/python-list