Python Training — Introduction
Hi there, I recently published one of my articles from this site . To read the rest of my articles, if you are Persian and want to, you can follow the link below.

In this series of articles, I intend to present the key points that exist in the Python language. In this collection, an attempt has been made to keep the information brief and to focus on the most important points required.
After completing this course you will be able to use any Python library and run Python packages that you have written yourself.
Python is a high-level, object-oriented programming language used in a variety of fields, including web programming, scripting, scientific computing, and artificial intelligence. Python was created in 1991 by Guido van Rossum and later developed by the Python Software Foundation. Python is one of the most popular programming languages due to its simplicity and ease of understanding. So there are a lot of associations and books for Python developers. It takes less time to market the final product than languages like Java and C #. Almost all types of applications, from statistical forecasting to web applications, can be run in Python. The popularity of Python is growing day by day as it is recognized as the fastest growing language. The following chart shows the growth of Python over the last 5 years compared to JavaScript (the most widely used programming language according to the StackOverflow 2019 report):

As the chart above shows, Python search traffic increased for the first time around November 2017 compared to JavaScript and has maintained its dominance ever since. This shows the significant growth of Python compared to JavaScript in the last 5 years.
Stack Overflow also developed a model for predicting its future traffic based on a model called STL, and speculated that Python could be a leader in JavaScript at least until 2020.

All these trends show that Python is very popular and is becoming more popular over time. Here are some reasons why Python is so amazing:
Easy to use Python:
Nobody likes very complicated things, and that’s one of the reasons Python is so popular. Python’s simple syntax, which also increases its readability, is loved by both professional developers and novice students. In addition, Python is highly efficient because it allows developers to do more work using fewer lines of code.
Python has a strong support community:
Python has been around since 1991, and since then there has been ample opportunity for numerous forums and support forums. Because of this support, Python learners can easily improve their knowledge, which has led to Python’s growing popularity. There are also many resources, from official documents to YouTube educational videos, that promote Python.
Python has several libraries and frameworks:
Python currently has hundreds of different libraries and frameworks that can be used by developers. These libraries and frameworks are very useful in saving time, which in turn makes Python more popular. Some of the popular Python libraries are NumPy and SciPy for scientific computing, Django for web development, BeautifulSoup for XML and HTML parsing, scikit-learn library for machine learning programs, nltk for language processing.
How does Python work?
As mentioned earlier, Python is a high-level programming language. In this section, we will learn how high-level languages work, their advantages and disadvantages.
A high-level language is a programming language designed for simplification. They are called high-level because they remove several steps of code that run on our machine. High-level languages such as C, C #, Java, JavaScript, Python, Swift, etc. have a simple syntax that is converted to a low-level language by an interpreter to be recognized and executed by the CPU. High-level languages, unlike low-level languages, are easier for programmers to read and therefore more understandable, and more widely used, so it is easier to develop programs in these languages due to the availability of extensive resources. On the other hand, because they require an interpreter to run on the machine, they use more resources than low-level languages, but the code written in these languages is portable and can be run on any platform. In the following, we will explain in more detail how Python works.

As you can see in the picture, the key point is the interpreter, which is responsible for translating Python’s top-level language into the machine-level language.
Python works as follows:
- A Python virtual machine is created at the installation location of packages (libraries). Think of a virtual machine as a container.
- Python code is then written to .py files.
- CPython, as an interpreter, translates Python code into bytecode. The bytecode is for the Python virtual machine.
- When you want to execute a bytecode, the code is interpreted at runtime. The code will then be translated from bytecode to machine code. The bytecode does not depend on the machine on which you run the code. This allows Python to operate independently.