How can I automatically save the output form Python to SQL database system using a for loop?

I have used a python for loop which produce the output continuously. Now I want to save this output to the SQL database system without any interruption. In other words, the results will be saved to the SQL database table until the end of for loop.