Monday, January 27, 2020

about python

About Python

We can do plenty of things with Python-like, GUI development, Web application development, System administration, Financial calculation, Analysing large data, Data Visualization, Machine learning. IoT etc. Before diving into the Python code we are first going to take a look at what Python is now.

  • Python is a general-purpose high-level programming language. It is used in a wide variety of applications and can be found in many industries around the world.
  • Python is a mature programming language that has evolved over the past 20 to 25 years.
  • Python is powerful, fast and efficient. When we say fast it means that it is fast to create new programs or to modify existing programs because of the clear readable syntax. It is easy for new users or users who are opening-up code.
  • Even migrating to Python is very easy, Programmers can quickly understand what is happening unlike languages such as C or Perl, where it is up to the designer or the coder to maintain good coding practices and style. 
  • Python inherently forces the user to write a clean and readable code. It uses white spaces to define code blocks as opposed to other languages that require curly brackets.
  • Python is a dynamic language, means that everything happens at one time unlike C, which is compiled and many of the properties are set during compile time.
  • Python is also dynamically typed which means a variable doesn't always have to stay one type it may start out as an integer and then later become a string, that is not possible in statically typed languages such as C. 
  • In C programming, if you define something as an integer, it will always be an integer.
  • As Python is an interpreted language the code runs immediately.
  • It allows for quick iterations test this means you can modify your code and quickly run it without having to compile and link the code.
  • Python has full support for object-oriented programming.
  • With the support of Python’s extensive standard libraries, Python generally requires a lesser coding effort. it's modular and allows for extensive code reuse.
  • In Python, there's no need to reinvent many of the common tasks that you will be required to do with some other programming languages. We just need to load the modules and call the corresponding functions.
  • Python is also portable this means that code can be written on one platform and run on a different platform.
  • Languages like C are not portable. For example, you compile the code on Windows than it would only run on Windows machine, if you want to move the compiled code to Linux, you would first have to recompile the program on Linux before you'd be able to execute it.

Compiling and Interpreting the code

python interpretation

Drawbacks of Python

Python does have a couple of disadvantages now this will depend on the requirements of your application. When compared to a compiled language Python’s execution speed is generally slower for applications involving large data sets complex math it can generally be beneficial to use a compiled language.

The second downside is protecting your code because of Python is interpreted and it is very difficult to hide code from prying eyes, so if your application is proprietary and it's going to be shared with people outside of your organization, it's safe to say that if somebody wants to see the code and how it works they will be able to do. This is much more difficult when working with compiled languages in general though the advantages of working with Python far away from the disadvantages.