Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

Python, 50

n=1;
print n
open(__file__,'r+').write("n="+`n+1`)

It uses the same approach as primo's answerprimo's answer and similarly crashes on the 100th run.

Python, 50

n=1;
print n
open(__file__,'r+').write("n="+`n+1`)

It uses the same approach as primo's answer and similarly crashes on the 100th run.

Python, 50

n=1;
print n
open(__file__,'r+').write("n="+`n+1`)

It uses the same approach as primo's answer and similarly crashes on the 100th run.

Source Link
grc
  • 19.1k
  • 9
  • 37
  • 80

Python, 50

n=1;
print n
open(__file__,'r+').write("n="+`n+1`)

It uses the same approach as primo's answer and similarly crashes on the 100th run.