skip to main | skip to sidebar

Python Programs and Examples

Pages

  • Home
 
  • RSS
  • Facebook
  • Twitter
Wednesday, February 1, 2012

A Brief introduction to Python

Posted by Admin at 8:28 AM – 1 comments
 
Whether you have used it or not, Python is probably a language you all have heard of. The reason is simple; this language has friends in high places.



Python is a favored language at Google, and was one of the first languages supported in its Google App Engine platform for developing web applications. It is also the language in which Google choose to write its GoogleCL command line interface for Google services. Many organization use Python both internally and in shipping products. The popular Civilization IV game by Firaxis for example, makes extensive use of Python for the game mechanics: Industrial Light and Magic too use Python, as does Yahoo. Blender, possibly the most popular free and open source software for creating and editing 3D content, makes significant use of Python. While Firefox itself isn't written in Python, its build system makes extensive use of Python.

So why so much love for Python? Well, because it is fast, it is free and open source, and best of all it is easy to learn. Python is portable, and is available for multiple platforms, Windows, Linux, Mac OS, and is embeddable in other products. For someone new to programming, Python is a great language to start with, and will likely stay with you even as you learn other languages.

Python is a high level language, which means most operations you wish to perform have libraries and can be handled in just a few lines. You can, for example, have a simple web server up and running in fewer than 100 lines of code, thanks to the HTTPServer class.

Python is extensible, and one will find thousands of modules which extend its functionality. Python is scalable, considering that You Tube is almost entirely Python! Most of the modules that come with Python are actually written in C / C++ so they run at native speeds, and your programs generally run faster than those of other interpreted programming languages.

Python is good at interfacing with other programming languages such as Java and C++ making it a great language for programming higher level features of an application, while keeping performance-critical functions in native code. This enables Python developers to easily use C I C++ libraries such as Qt / GTK + and other.

Python is also peculiar. Unlike most programming languages, where white-spaces and tabs are used simply for code formatting and discarded otherwise, Python uses these elements as part of the code structure. Python uses spacing instead of ‘{‘ brackets or text to denote blocks of code.

In one sentence, Python is a fast, interpreted, Object-Oriented, Dynamic, free, Open Source, powerful, extensible, modular, high-level, portable programming language that is easy to learn, and which has a powerful library, good documentation, a large number of third party modules, and a sense of humor.
[ Read More ]
Read more...
Newer Posts
Subscribe to: Posts (Atom)
  • Popular
  • Recent
  • Archives

Popular Posts

  • To Send the entire contents of directory as an email Message.
    Here is a Python Program to send the entire contents of a directory as an email message #!/usr/bin/env python """Send the...
  • Control Structures in Python
    This Program explains different control structures in python If ==== # basic "If" if boolean: x = 1 else: x = 0 # No...
  • Python Code for creating Screen saver
    This is the Python code for creating a screensaver of a moving ball. The ball will bee moving along the screen and when it hits any of the ...
  • Python script for walking the directory tree structure but excluding some directories and files
    The script walks the directory structure recursively. Some of the directories and files can be excluded from the walk by providing them in ...
  • XML to CSV Converter
    Python Program to extract each execution data (few children in xml) and create a csv file. def xml2csv(inputFile,outputFile,elemName,n...
  • HTML Email using Python
    We created a module called sendmail which email html content. Each of application dumps data from the datastructure into html format and th...
  • Overview of Python Programming Language
    Python is an easy to learn, powerful programming language. It has efficient high level data structures and a simple but effective approac...
  • Fast and efficient Backup script that works on Windows and Linux
    This python script backup your directory structure that works on Linux and Windows both. It directly uses the shell to do this task and she...
  • Run Application from host
    import os os.execl( "c:/Windows/Notepad.exe", "c:/userlog.txt") print "Running notepad" #or import subpro...
  • Orphan Checker
    The script does not use any outside libraries, thus keeping its execution simple. we will start by initializing the arrays that we'll...
Powered by Blogger.

Archives

  • ▼  2012 (66)
    • ►  October (28)
    • ►  September (36)
    • ►  March (1)
    • ▼  February (1)
      • A Brief introduction to Python
 

Labels

  • Command Execution Using Python (2)
  • Control Structure (1)
  • CSV Examples (4)
  • Database (3)
  • Features of Python Programming Language (1)
  • File Example (2)
  • IF Statement (1)
  • List (2)
  • Mail (5)
  • Multithreading (1)
  • MySQL (3)
  • Python Date Example (2)
  • Python Example (2)
  • Python File Example (7)
  • Python Introduction (1)
  • Python Network Example (1)
  • Python XML Parser (2)
  • Searching Example (2)
  • Simple Calculation Program (1)
  • Strings (4)
  • Zip File Example (1)

Followers

 
 
© 2011 Python Programs and Examples | Designs by Web2feel & Fab Themes

Bloggerized by DheTemplate.com - Main Blogger