I have a main py script which imports a second py script which is used many times in main.py with a fresh start. Now how can I de import the script and run it again. I want to run the whole script and not some function of the script.
I have tried running it dynamically which now I know doesn't works on scripts and only on proper modules.
#main.py
for i in range(5):
import second
#second.py
print(....)