why Python??


Python is a widely used high-level programming language for general-purpose programming, created by Guido van Rossum and first released in 1991.

Python is an interpreted language which simply means it executes the code line by line.
(some other interpreted language are :Ruby,Javascript,Forth).



Comapring  Python and other languages:
program for printing Hello World in different languages

in c++:


#include<iostream>
using namespace std;
int main()
{
cout<<"Hello World"; return 0; }

in Java:

public class HelloWorld {
   public static void main(String[] args) {
      // Prints "Hello, World" in the terminal window.
      System.out.println("Hello, World");
   }
}

in Python:

print('Hello World')


all the above codes give the output:

Hello World
so as you can see length of the code is the smallest in python.while other languages use 3 to 4 lines to simply print or display Hello World on the output screen.Python does so in a single line.

Python has a design philosophy that emphasizes code readability (notably using whitespace indentation to delimit code blocks rather than curly brackets or keywords), and a syntax that allows programmers to express concepts in fewer lines of code than might be used in languages such as C++ or Java.


The language provides constructs intended to enable writing clear programs on both a small and large scale.

Why is the usage increasing?

  • Easy to learn and quick to get started because of its simple syntax.
  • Dynamic typing and the interactive REPL make it quick to prototype or test ideas.
  • Huge community, across a variety of domains.
  • Used as the introductory programming language at a lot of universities including MIT, UC Berkeley etc.
Why would you choose Python over Java?
  • Programmer productivity is more important to you than program speed.
  • You care about time-to-market more than anything else.
  • Your app is largely network/IO bound. Speed will not matter in this case.
  • You are working on a prototype.
  • You like writing quick scripts for common tasks.
  • You like whitespace and beautiful indented code.
  • You want to be happy :)

It is also helpful to look at the competing languages:
  • Historically, Perl was the biggest competitor for Python but went out of favor for quite a few reasons of which, not being beginner friendly is probably the biggest one.
  • PHP is used mainly for web development.
  • Javascript was based in the browser for a long time, but is now gaining popularity with node.js
  • Ruby is a great competitor to Python, but a lot of its community seems to be focused around Rails.
By not allowing multi-threading (or simultaneous execution within the same process) Python drastically simplifies programming complexity faced by developers.  Common issues and optimizations for multi-threaded processes can just be ignored en-masse by the developer because the Python interpreter will only ever execute a single piece of logic at a time.

So if ultimately performance can be augmented/handled, you are left with the main reasons Python is desirable as a language:
  • Simple
  • Productive
  • Readable (and thereby more maintainable)

Comments

  1. Nice blog Content. It is very informative and helpful. Please share more content. Thanks.
    Python Training in Noida
    Python Course in Noida
    Python Institute in Noida

    ReplyDelete
    Replies
    1. Easy to learn and quick to get started because of its simple syntax.
      Dynamic typing and the interactive REPL make it quick to prototype or test ideas.
      Huge community, across a variety of domains.
      Used as the introductory programming language at a lot of universities including MIT, UC Berkeley etc.

      python ieee projects

      IEEE projects for cse

      final year projects for computer science

      Delete
  2. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site
    Python Training in Bangalore

    ReplyDelete
  3. Really very informative and creative. This sharing concept is a good way to enhance knowledge. We are top Mobile App Development.

    ReplyDelete
  4. 123movies Thank you for sharing this nice post, get customized and responsive Website & App development services by the best Software Development Company in Gurgaon, India. Also get other services like: Digital Marketing, IoT Solutions, Startup Consulting.

    ReplyDelete
  5. Trainingicon is offering Python training in Delhi NCR. We are a training institute in Delhi and Noida.We provide industrial training in programming like Python, PHP, Web designing, R Programming etc so if any body is looking to get trained into any skills, just let us know.following is the link to get enrilled into python batch
    Python Training in Noida

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. Thanks for sharing this informative article on why Python?? If you want to Python development company for your project. Please visit us.

    ReplyDelete

Post a Comment