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.
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.
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.