| Hello World in python |
|
| programming |
This article describes how to write and execute a "Hello World" program in Python on Linux (Fedora).
1. the prerequisites
If it is not installed yet, you can install it with yum (you need to be root to do that):
2. write the code
now write the following code into the sourcefile: save the file and exit vi with ":wq + enter"
explanationThis tells the system to use the /usr/bin/python interpreter to execute the script. You can find out the full path of your python interpreter by entering the following command: This prints out the string "Hello World!".
3. make the script executable4. run the program
- or -
Comments (0)
Powered by !JoomlaComment 4.0 beta1
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved." |


