Craete a python file.
First i am going to create a simple python program to print "HAI FRIENDSSS", For that open a text file and write "print "HAI FRIENDSSS"", And save that text file with extension ".py".
Then open the terminal and go to the folder where the python file is saved
Run python command on terminal.
Then you will get the out put "HAI FRIENDSSS". In this way you can run python programs on terminal