Quick! Which programming language will get you up and running writing applications on every popular platform around?
The amazing thing about Python is that you really can write an application on one platform and use it on every other platform that you need to support.
Unlike the other programming languages that promised to provide platform independence, Python really does make that independence possible.
Python emphasises code readability and a concise syntax that lets you write applications using fewer lines of code than other programming languages require.
This post is all about getting up and running with Python quickly. You want to learn the language fast so that you can become productive in using it to perform your real job, which could be anything.
Unlike most, on the topic, this one starts you right at the beginning by showing you what makes Python different from other languages and how it can help you perform useful work in a job other than programming. You even get help with installing Python on your particular system.
Many programming languages are available today. In fact, a student can spend an entire semester in college studying computer languages and still not hear about them all. (I have done just that during my college days.)
You’d think that programmers would be happy with all these programming languages and just choose one to talk to the computer, but they keep inventing more. Programmers keep creating new languages for good reason.
Each language has something special to offer — something it does exceptionally well. In addition, as computer technology evolves, so do the programming languages in order to keep up. Because creating an application is all about efficient communication, many programmers know multiple programming languages so that they can choose just the right language for a particular task. One language might work better to obtain data from a database, and another might create user interface elements especially well.
As with every other programming language, Python does some things exceptionally well, and you need to know what they are before you begin using it.
You might be amazed by the really cool things you can do with Python.Knowing a programming language’s strengths and weaknesses helps you use it better as well as avoid frustration by not using the language for things it doesn’t do well. The following sections help you make these sorts of decisions about Python.
Less application development time:
Python code is usually 2–10 times shorter than comparable code written in languages like C/C++ and Java, which means that you spend less time writing your application and more time using it.
Ease of reading:
A programming language is like any other language — you need to be able to read it to understand what it does. Python code tends to be easier to read than the code written in other languages, which means you spend less time interpreting it and more time making essential changes.
Reduced learning time:
The creators of Python wanted to make a programming language with fewer odd rules that make the language hard to learn. After all, programmers want to create applications, not learn obscure and difficult languages.
Creating rough application examples:
Developers often need to create a prototype, a rough example of an application, before getting the resources to create the actual application. Python emphasises productivity, so you can use it to create prototypes of an application quickly.
Scripting browser-based applications:
Designing mathematical, scientific, and engineering applications:
Interestingly enough, Python provides access to some really cool libraries that make it easier to create math, scientific, and engineering applications. The two most popular libraries are NumPyand SciPy . These libraries greatly reduce the time you spend writing specialised code to perform common math, scientific, and engineering tasks.
Working with XML:
The eXtensible Markup Language (XML) is the basis of most data storage needs on the Internet and many desktop applications today. Unlike most languages, where XML is just sort of bolted on, Python makes it a first-class citizen. If you need to work with a Web service, the main method for exchanging information on the Internet (or any other XML-intensive application), Python is a great choice.
Interacting with databases:
Business relies heavily on databases. Python isn’t quite a query language, like the Structure Query Language (SQL) or Language INtegrated Query (LINQ), but it does do a great job of interacting with databases. It makes creating connections and manipulating data relatively painless.
Python isn’t like some languages like C# where you have a built-in designer and can drag and drop items from a toolbox onto the user interface. However, it does have an extensive array of graphical user interface (GUI) frameworks — extensions that make graphics a lot easier to create . Some of these frameworks do come with designers that make the user interface creation process easier. The point is that Python isn’t devoted to just one method of creating a user interface — you can use the method that best suits your needs.
As mentioned earlier on what my plan is regarding the posts…
I have a Compiled .py (python file) with needed comments covering the most of python basics that was allotted for the days post …I felt that there were too many comment lines inside so I am attaching another copy of the .py file without the long and boring comments, this is for people like me who jump into the heart of the problem and try and get enough experience getting out of it