1)
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
2)
Run python command on terminal.
Syntax:
"python filename.py"
Then you will get the out put "HAI FRIENDSSS". In this way you can run python programs on terminal
No comments:
Post a Comment