I am aware that I can run a Python script on Linux.
From the terminal by
./hello_world.py.From the file manager by clicking on the file.
... after including the shebang and marking the file as executable.
However, option 1 requires me to manually open a terminal and type out the file name, and option 2 won't show me any output from the script such as print statements and error messages since no output window will be opened, the script will just run invisibly in the background.
How can I configure my script file or Linux (Kubuntu 20.04 in my case) setup such that starting a *.py file from the file manager will automatically open it in a terminal window so that it shows the program output?
sleeptimer in the script to pause, enabling you to read the output, before the terminal window closes.