Python learning

Introduction and installation 

Python is a programming language with very long and rich history and proclaimed to be simple and powerful. Indeed, it's simplicity and its usefulness in scientific community is the main reason behind its  popularity and of course, role of MIT and Google to make it popular among developer community cannot be denied. Initially, python was known for accomplishing automation task, however with advancement of time various notable applications written in Python like : Original version of the Google crawler, installer for RedHat, named "anaconda". History of python can be read here (Wikipedia). In summary features of python (From byte of python by Swaroop C H) :
  1. Simple and Easy to Learn.
  2. Free and Open Source
  3. High-level Language 
  4. Interpreted - It does not need compilation into binary, program is directly from the source code. Internally, Python converts the source code into an intermediate form called byte-codes and then translates this into the native language of your computer and then runs it.
  5. Portable 
  6. Procedure-oriented and object-oriented programming support
  7. Extensible and embeddable - It can be used along with c/c++, java , etc. 
  8. Diverse and growing community - It is one of the most important feature of python from developer perspective. Python Standard Library is huge which support to various things involving regular expressions,documentation generation, unit testing, threading,databases, web browsers, CGI, FTP, email, XML, XML-RPC, HTML, WAV files,cryptography, GUI (graphical user interfaces), and other system-dependent stuff.
  9. Its important, python has various implementation like Cpython(C), Jpython(Java), IronPython(C#), etc. Refer this for more detail.
    Default implementation is Cpython (it is developed in C language) and it is interpreted language and program is executed on CPython Virtual Machine. In further post and when we say python, we actually mean Cpython. Languages like java, C# have extended default implementation and developed IronPython and Jpython respectively.  

Installation of Python in windows:-

The very first step which is required to start learning python is to install a stable version of python.
1. Download python executable : Python for windows can be downloaded from here. Suppose we have installed python in C drive and it will be available at "C:\Python27"(Assume you have installed python 2.7 version).
2. Update environment variable (Optional) : It is good practice to add python installed directory in environment variable under path. Here "C:\Python27" should be added as system variable under path.For reference see below diagram:

Add "C:\Python27" under system variables section in path.
Test Python installation:- Python is formally an interpreted language, in order to execute python program we need to open python interpreter.Python interpreter can be launched in a number of ways, let's see two most common ways to do the same:
1. Open command prompt -> type python and hit enter.
 If you see a few lines of information followed by the Python prompt >>> , it indicates python has        been installed successfully and  you are ready to GO!! and the window which is appearing now is        python interpreter window. Now, write your first sample program in python. IN python interpreter      just type print "Hello World!!" and it will respond with Hello World!!.
    >>>  print "Hello World!!"
    Hello World!!
2. Go to All programs -> Python 2.7-> Python (command line). Once you click Python (command line), python interpreter appears and here you can write python program. Lets do sum of two number and display result.
    >>>  print 12+23
   35
We have installed python successfully and wrote Hello world, sum program. Its time to move on with fundamentals of python and built-in data structure in python and its uses.It will be discussed in next section.

Read also: Why python is called interpreted language?
  Next: Fundamentals of Python

10 Comments

  1. Hi, I run a travel agency in Seattle and I always look to expand my business virtually instead of physical appearance everywhere. What do you think that how python language and this technology related stuff can help our business to expand in all other major cities of U.S. Here's a business link http://danitravelswell.com, pls check it and let me know is it possible?

    ReplyDelete
  2. Thanks for the informative post. Love the Content. Your Blog are Very interesting.
    Learn about- software companies

    ReplyDelete
  3. My fiancé and I are currently planning our dream wedding in Arlington for next summer. We're on the lookout for a talented wedding photographer who can capture our special day beautifully. Any recommendations or personal experiences with photographers in the area would be greatly appreciated! I will visit that photography service before hiring it.

    ReplyDelete
  4. Indulge in the allure of smartly designed 2 & 3BHK homes at Kohinoor Hinjewadi Phase 2. starting at just ₹75 Lacs onwards. Revel in the convenience of prime location living, surrounded by plenty of amenities. Join a vibrant community of like-minded people in a peaceful neighbourhood. Strategically located near employment hubs and renowned educational & healthcare cenetres in Hinjewadi, Pune. Embrace homes that are built with optimum space utilization and also Vaastu-compliant.
    Click here @ Kohinoor Hinjewadi Pune

    ReplyDelete
  5. Kohinoor Greentastic is an upcoming housing project located in Kharadi, Pune, which is simply majestic. This residential project will be offering 2 & 3 BHK apartment configurations. These spaces are well segregated yet amalgamated to show a masterpiece look surrounded by a serene ambient & pollution-free environment. These towers enclosing spacious apartments soar high up in the sky majestically making their presence felt in Kharadi Pune.
    For more details - Kohinoor Greentastic

    ReplyDelete
  6. Lodha Baner is the latest offering from Lodha Group, an upcoming residential project in Pune. In today’s fast-paced life it is hard to maintain your personal space and moments of happiness. The project made easy to access alluring spacious residences at a very affordable amount of investment. Here at Baner, Pune, this project brings you precisely crafted, luxurious 2 BHK and 3 BHK apartments with cutting-edge design, a homely interior, and a sizeable terrace.
    For more details
    Click here @ Lodha Baner Pune

    ReplyDelete
  7. Experience unparalleled luxury at Pristine Viman Nagar! Spacious 3.5 & 4.5 BHK apartments (1546-2644 sq.ft. of carpet area) await you. This premium project boasts a stunning array of amenities - sky decks, clubhouse, infinity pool, mini theater & more! Located in a prime Pune location with excellent connectivity. Prices start from 3 Cr. Don't miss out on your chance to live the dream!
    Visit us at - Pristine Viman Nagar Pune

    ReplyDelete
  8. Kohinoor Teiko offers 2 and 3 BHK homes in Hinjewadi. With the beauty of nature and every modern necessity, Central Hinjewadi is a hot destination boasting a promising future. With Kohinoor Teiko Prime's location and world-class amenities, living here will surely promote your lifestyle. The cosy interiors are perfect for relaxing after a long day at work. And with PCMC just a stone’s throw away, you’ll have easy access to shopping, dining, and entertainment options. These affordable and advantageously located apartments offer you an opportunity to live in the heart of Central Hinjewadi. So why wait? Invest in today and experience the luxury of 2 and 3-BHK flats in Hinjewadi, Pune.
    Click here - Kohinoor Teiko Pune

    ReplyDelete
Previous Post Next Post