w3resource logo


Introduction to Python 3.2

Python Tutorial

rating Average rating 8 out of 10. Total 53 users rated.

<<PreviousNext>>

What is Python?

Python is a freeware interpreted, object-oriented, high-level powerful programming language available on almost all operating systems. It's well-designed syntax and dynamic typing makes it an ideal language for scripting and rapid application development in many areas.

Python Logo

History

The name Python was selected from "Monty Python’s Flying Circus" which was a British sketch comedy series created by the comedy group Monty Python and broadcast by the BBC from 1969 to 1974.

Python was created in the early 1990s by Guido van Rossum at the National Research Institute for Mathematics and Computer Science in Netherlands.

Python was created as a successor of a language called ABC (All Basic Code) and released publicly in1991. Guido remains Python’s principal author, although it includes many contributions from active user community.

Between 1991 and 2001 there are several versions released, current stable release is 3.2. In 2001 the Python Software Foundation (PSF) was formed, a non-profit organization created specifically to own Python-related Intellectual Property. Zope Corporation is a sponsoring member of the PSF.

All most all Python releases are Open Source. To see the details of release versions and licence agreement of Python check here.

Features of Python

Open source : Python is publicly available open source software, any one can use source code that doesn't’t cost anything.

Easy-to-learn : Popular (scripting/extension) language, clear and easy syntax, no type declarations, automatic memory management, high-level data types and operations, design to read (more English like syntax) and write (shorter code compared to C, C++, and Java) fast.

High-level Language :
High-level language (closer to human) refers to the higher level of concept from machine language (for example assembly languages). Python is an example of a high-level language like C, C++, Perl, and Java with low-level optimization.

Portable :
High level languages are protable, which means they are able to run across all major hardware and software platforms with few or no change in source code. Python is protable and can be used on Linux, Windows, Macintosh, Solaris, FreeBSD, OS/2, Amiga, AROS, AS/400 and many more.

Object-Oriented : Python is a full-featured object-oriented programming language, with features such as classes, inheritance, objects, and overloading.

Python is Interactive :
Python has an interactive console where you get a Python prompt (command line) and interact with the interpreter directly to write and test your programs. This is useful for mathematical programming.

Interpreted : Python programs are interpreted, takes source code as input, and then compiles (to portable byte-code) each statement and executes it immediately. No need to compiling or linking

Extendable : Python is often referred to as a “glue” language, meaning that it is capable to work in mixed-language environment. The Python interpreter is easily extended and can add a new built-in function or modules written in C/C++/Java code.

Libraries : Databases, web services, networking, numerical packages, graphical user interfaces, 3D graphics, others.

Python Is Easy to Use

A simple program written in C++, C, Java and Python. All program prints "Hello world".

C++ Program :
#include <iostream>
int main()
{
std::cout << "Hello World" << std::endl;
return 0;
}

C Program :
#include <stdio.h>

int main(int argc, char ** argv)
{
printf(“Hello, World!\n”);
}

Java Program :
public class Hello
{
public static void main(String argv[])
{
System.out.println(“Hello, World!”);
}
}

Python Program :
print ( ""Hello World")

Python Environment

  • AIX
  • AROS
  • AS/400 (OS/400)
  • BeOS
  • MorphOS
  • MS-DOS
  • OS/2
  • OS/390 and z/OS
  • Palm OS
  • PlayStation and PSP
  • Psion
  • QNX
  • RISC OS
  • Series 60
  • Solaris
  • VMS
  • Windows CE or Pocket PC
  • HP-UX
  • Linux

Major uses of Python

  • System utilities (system admin tools, command line programs).
  • Web Development.
  • Graphical User Interfaces (Tkinter, gtk, Qt).
  • Internet scripting.
  • Embedded scripting.
  • Database access and programming.
  • Game programming.
  • Rapid prototyping and development.
  • Distributed programming

Organizations Using Python (sector wise)

Web Development : Yahoo Maps, Yahoo Groups, Google, Zope Corporation, Ultraseek, Linux Weekly News, ElasticHosts Cloud Servers, Mojam.com, hunch, Shopzilla, Movieplayer.it, Multiplayer.it.

Games : Battlefield 2, Crystal Space, Star Trek Bridge Commander, The Temple of Elemental Evil, Vampire: The Masquerade: Bloodlines, Civilization 4, QuArK (Quake Army Knife)

Graphics : Industrial Light & Magic, Walt Disney Feature Animation, HKS, Inc. (ABAQUS/CAE), RoboFog, Caligari Corporation, Blender 3D, Jasc Software, Paint Shop Pro.

Financial : Altis Investment Management, ABN AMRO Bank, Treasury Systems, Bellco Credit Union, Journyx Timesheet and Resource Management Software.

Science : National Weather Service, Radar Remote Sensing Group, Applied Maths, Biosoft, The National Research Council of Canada, Los Alamos National Laboratory (LANL) Theoretical Physics Division, AlphaGene, Inc., LLNL, NASA, Swedish Meteorological and Hydrological Institute (SMHI), Environmental Systems Research Institute (ESRI), Objexx Engineering, Nmag Computational Micromagnetics

Electronic Design Automation : Ciranova, Productivity Design Tools, Object Domain, Pardus, Red Hat, SGI, Inc., MCI Worldcom, Nokia,

Education : University of California, Irvine, Smeal College of Business, The Pennsylvania State University, New Zealand Digital Library, IT Certification Exam preparation, SchoolTool,

Business Software : Raven Bear Systems Corporation, Thawte Consulting, Advanced Management Solutions Inc., IBM, Arakn<E9>, RealNetworks, dSPACE, Escom, The Tiny Company, Nexedi, Piensa Technologies - Bufete Consultor de Mexico, Nektra, WuBook.

To see the details of the above organizations check here.

Features of the w3resource Python tutorials

In this series of tutorials we have covered Python 3.2 in detail. While creating this, we have take care that learners can master the basics of Python.

Here is a list of features we have included in all of the chapters :

1. We have started from beginning i.e. from installation, with a clear and simple description.

2. We have clearly define Syntax / Usage so that you can remember how to write it.

3. Example(s) to show how the associated concept is implemented.

4. We have shown the Output of the usage.

5. View the example in browser.

6. Pictorial presentation to help you to understand the concept better.

7. You may refer Python 3.2 Manual along with this tutorial.



<<PreviousNext>>