and open terminal window to move the file with the mv /home/al/example desktop /home/allocal/share/applications command when the example desktop file is in the /home/allocal/share/applications folderyou'll be able to press the windows key on your keyboard to bring up dash and type example py (or whatever you put for the name fieldthis opens new terminal window (specificallythe gnome-terminal programthat runs the /home/al/example sh shell scriptwhich we'll create next in the text editorcreate new file with the following content#!/usr/bin/env bash python /home/al/example py bash save this file to /home/al/example sh this is shell scripta script that runs series of terminal commands this shell script will run our /home/alexample py python script and then run the bash shell program without the bash command on the last linethe terminal window would close as soon as the python script finishes and you' miss any text that print(function calls put on the screen you'll need to add execute permissions to this shell scriptso run the following command from terminal windowal@ubuntu:~chmod + /home/al/example sh with the example desktop and example sh files set upyou'll now be able to run the example py script by pressing the windows key and entering example py (or whatever name you put in the name field of the example desktop filerunning python programs with assertions disabled you can disable the assert statements in your python programs to gain slight performance improvement when running python from the terminalinclude the - switch after python or python and before the name of the py file this will run an optimized version of your program that skips the assertion checks running programs