python – The loop continues to execute only while the page is open in the browser. Is it possible to make it run constantly?

Question:

There is such a question: On the hosting I run a Python script with an infinite loop

while True:
    #do somethink

I go to the address of the script, and the loop continues to be executed only while the page is open in the browser. Is it possible to make it run constantly?

Answer:

most likely – no, you cannot run the script by going to its address, and then close it, thereby stopping the cycle.

Scroll to Top