[Python] Python and security-① What is Python?


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.

Benefits of Python


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.


#include <stdio.h>
int main() {
    printf("Hello World");
    return 0;


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.

Strong cooperation (glue)

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.

Various libraries

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.

Cross-platform development

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.

Easy to make tools

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

[Python] Python and security-① What is Python?
What is python
What is Python
[Python] What is Pipeline ...
[Python] What is virtualenv
What is "functional programming" and "object-oriented" in Python?
What are you comparing with Python is and ==?
[Python] * args ** What is kwrgs?
Identity and equivalence Python is and ==
What is a python map?
Python Basic Course (1 What is Python)
What is Python? What is it used for?
[Python] What is a zip function?
[Python] What is a with statement?
Difference between == and is in python
[Python] What is @? (About the decorator)
Python for statement ~ What is iterable ~
What is the python underscore (_) for?
Python> What is an extended slice?
What is namespace
What is copy.copy ()
[Python] What is inherited by multiple inheritance?
What is NaN? NaN Zoya (Python) (394 days late)
Python is easy
What is Django? .. ..
What is dotenv?
What is POSIX?
What kind of programming language is Python?
Python learning basics ~ What is type conversion? ~
What is Linux
What is SALOME?
What is "mahjong" in the Python library? ??
What is a dog? Python installation volume
What is hyperopt?
Python is instance
What is Linux
What is pyvenv
How to use is and == in Python
What is __call__
What is Linux
[Introduction to Python] What is the difference between a list and a tuple?
[What is an algorithm? Introduction to Search Algorithm] ~ Python ~
[Python] Python and security-② Port scanning tool made with Python
What is the difference between `pip` and` conda`?
The answer of "1/2" is different between python2 and 3
[Xonsh] The Python shell is sharp and god
What is wheezy in the Docker Python image?
I tried Python! ] I graduated today from "What is Python! Python!"!
About the difference between "==" and "is" in python
What is bucket sort? Merideme and code example
[Introduction to Udemy Python 3 + Application] 54. What is Docstrings?
What are python tuples and * args after all?
What is equal repayment of principal and interest and equal repayment of principal and interest?
What is the difference between Unix and Linux?
Tell me what a conformal map is, Python!
[python] Compress and decompress
python int is infinite
What is a distribution?
What is Piotroski's F-Score?
Python and numpy tips
[Python] pip and wheel