Archive for the ‘Python’ Category

Chapter 1 – Python Hello World Program

 
Step 1
 
Open any text editor (gedit,pico,vi,nano)
 
python-code-open
 
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
 

Read more »

Introduction to Python Programming Language

 
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.
 
The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, http://www.python.org/, and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation.
 
In this tutorial am using linux operating system for compiling python script.
 
Step 1
 
First you need to check, python is already installed in your system by using the following command
 
which python
 

Read more »