I have a subfile, for example ex1.h,
which contains some of my code, for example print('Test something')
.
Now I want to include it to my main file, i.e. main.py, such that
#include 'ex1.h'
And when I run the python file main.py, I want it to print out the message: Test something
.
Is there any way to do that with python?