GETTING STARTED WITH PYTHON

WHAT IS PYTHON?

Python is general proposed high level programming language. Unlike other commonly used programming languages it is not compiler based programming language. It is the interpreter. It means each line of codes are converted to machine language. Python was written by a Dutch programmer  Guido van Rossum and first released in 1991. In recent years Python is emerging as powerful tool of programming due to its wide range of application like Java. Python can be used to develop both desktop and web application. It is a platform independent. It means the programs written written in python works on any system(Operating Systems) with just minor change in codes (minor changes are necessary just to ensure it work smoothly.


GETTING STARTED WITH PYTHON

HOW TO CHOOSE THE BEST LANGUAGE TO GET STARTED WITH

Many beginner programmers get confused while choosing the best programming language to get started with. It is observed that people who are unable to choose the correct programming language soon get frustrated and leave it because they could neither progress nor understand it. So, it is necessary to do a small research about the language you are going to learn. Also, it is necessary to read the documentation of that particular language which people generally ignores. Also, before you starts you should know the application of that language and if it is platform dependent or not. You should be aware about the purpose for which you are learning programming.
 Whichever programming language you choose, the basic concept of computer programming is must for all.

WHY PYTHON FIRST?

Python is a interpreter, it means you can know different kinds of errors and mistakes in your code in each line after you enter new line. This makes easier to find mistakes and fix errors in your code (EASY DEBUGGING). But if you go for C+, C++ or Java they all are compiler based. So, the whole code is compiled at once and debugging is more frustrating. A single semi-colon if forgotten will ruin your whole code. The syntax in python are easier. For the kids who are familiar with QBASIC can also easily go through the python. Other thing that matter most for noobs is Platform Dependency. Python being platform independent language you can run your python coded programs in any operating system.

WRITING FIRST PROGRAM IN PYTHON

Before you start to code in python platform you need to setup your PC for it. All you need is to install python 3 (or any version) and a comfortable IDE for you.
You can Download python from here. DOWNLOAD PYTHON
While you are installing python dont forget to choose the option "ADD TO ENVIROMENT VARIABLES".

The next thing is to choose and install a good IDE to write code. You can also use any text editor for it. But I recommend to use Pyscripter for writting python codes as it is specially designed for python and you can test your code within it. Also, it provides general information about the syntax you typed.

Sample python program to test if python is ready to use or not.

  1. # sample python program to add two numbers
  2.  
  3. # Store input numbers
  4. num1 = input('Enter first number: ')
  5. num2 = input('Enter second number: ')
  6.  
  7. # Add two numbers
  8. sum = float(num1) + float(num2)
  9.  
  10. # Display the sum
  11. print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))

I recommend you to take a online course from site like Edx or Alison before you start programming in python. 

Post a Comment

0 Comments