Hi all
Take a text editor and type this code and save it with some filename ,for eg test.py
We can start programming using Python .I am running python in Ubuntu 10.04 and using version python 2.6.5 . We can start with "hello world program" .You can either use interpreter or can write source code with extension .py .The standard way of programming is writing code .I am demonstrating the source code here.
Hello World using Python
Take a text editor and type this code and save it with some filename ,for eg test.py
#!/usr/bin/env pythonprint "Hello World" After saving the file ,Take terminal in the following file-path,type the following command to execute
python test.pyThe Output will look like this
Hello World
0 comments:
Post a Comment