Python is an interpreted programming language announced in 1991 and was developed by the Dutch programmer Guido van Rossum. Based on January 2020, the latest versions are Python2 "2.7.17" and Python3 "3.8.1". Since the end of 2008, Python has been used in "version 2" and "version 3". Python2 and Python3 are often incompatible with each other, so you need to choose one of the two versions when programming. Official technical support for Python 2 will end after "2.7.18" is released in April 2020. It also fixes new libraries and vulnerabilities supported by Python3, so if you're just starting to learn Python, I recommend Python3.
The main advantage of Python is that it is easy and anyone can easily create a program. Below, I made an example of outputting "Hello World" in C and Python languages.
hello_world.c
#include <stdio.h>
int main() {
printf("Hello World");
return 0;
}
hello_world.py
print("Hello World")
In this way, C can be expressed in 5 lines, but Python can be expressed in 1 line. Also, grammatically, parentheses ({,}) and semicolons (;) are not required, and the syntax is distinguished by indentation, so the source code is easier to understand.
Python is not suitable for system programming or programs with many complicated operations. However, Python is so collaborative that it can be included in programs written in other languages. For example, it is possible to create complicated operations and parts that require high processing speed in C and include Python in them. Of course, not only C but also various languages such as C ++, JAVA, and JavaScript can be used in parallel with Python.
Personally, I think the biggest merit is the huge number of libraries. Tkinter or PyQT for developing GUI, Pygame for game creation, PyInstaller that creates programs written in Python as executable files, Beautiful Soup for web crawling, etc. Because there are various libraries, you can develop efficiently.
As mentioned above, since it provides a huge library, it can be developed regardless of the OS environment. As an example, when developing a GUI using Python on Windows, use Tkinter or PyQT library as a library. This library can be developed and run on Linux using the same library. As you can see, the Python library is huge and supports each OS.
Many libraries and open source Python, which allows you to create programs immediately with simple grammar, is suitable for system personnel to create tools.
** There are many other benefits to developing with Python besides the above benefits. Instead, because it is an interpreted language, there are of course disadvantages such as speed issues and incompatibility on mobile platforms. ** **
Python is used in multifaceted development because of its ease of development. This time an overview of Python I also learned about the benefits of using Python. Next time, I will actually use Python for security Let's make a useful tool for tees.
Recommended Posts