File: pyedit-products/unzipped/docetc/examples/RunCode-examples/loopy2.py

# infinite loop - ensure a run-window close kills this process!
# for Windows/Linux frozen proxies, the temp dir is also deleted;
# the run's output window will eventually run out of text to scroll,
# but can also be closed earlier without any issues;  this process
# can also be closed outside Python (temp dir removed either way);

i = 0
while True:
    print(i)
    i += 1



[Home page] Books Code Blog Python Author Train Find ©M.Lutz