I was doing a flask application and there was a problem that the code I write isn't getting executed. Instead of my code getting executed, it executes an older version of the code.
I searched for a solution in stackoverflow and found out the reason for this problem is that there are other python or vscode processes running in the background and they are the ones getting executed instead. The solution for this problem is to disable or kill those other running processes from the task manager and everything will be ok. The problem is that there are lots of running processes and I don't know which ones should I delete and which process is the one I should keep and not disable it.
Here is a picture of the processes in task manager:

Just kill all active instances of "Python" by right clicking on them then choosing "End Task" from the context menu that will appear after that.