When I compile a python file, I get a *.pyc file. When I try to run that, I get a message saying there is no program for running them. When I search for a program online via that option, it says there are none. Can anyone help me run there files?
Since your python file is byte compiled you need to run it through the from the python interpreter
The reason you can run your .py files work directly is because you have the line
or something similar on the first line in the .py files. This tells your shell to execute the rest of the file with the python interpreter.