To execute a file in Linux all you have to do is go to the terminal and write “python3” and then the location of the file. Be sure to write the name of the file and “.py” after it. To make the location shorter save the file in the main directory. An ex…