I was curious about this. I don't need code examples per se, I just want to know if my logic is correct.
As a very very basic example let's say I have a Python program running on my local machine and a website hosted with GoDaddy or some other host.
In my py file I have a basic variable like
x = 5
And on the website, there's user input such as a text/submit box. When a user inputs a number and submits, the python variable above will update to that new number.
What is the most efficient way of doing this? Would I utilize a database that stores the user input, and on a timed loop make the Python program query that db and update the variable accordingly or is there a more efficient/standard way of going about this?
I apologize if it's a dumb question, I haven't been able to find anything online so maybe my search engine skills need to be progressed.