Step 1
Open any text editor (gedit,pico,vi,nano)
Enter the following python script and save the file with .py extension.
#!/usr/bin/python
#Author : Jijo K Jose
a="Hello World"
print 'First program was'
print a + "."
#END
Step 2
Change file permission to executable using chmod command.
Step 3
Execute the python file.
No comments:
Post a Comment