Steps are mentioned below:
Install python
Add in the classpath
open terminal
change directory to the location where pythin file is located
use this command to run the file: python fileName.py