Introduction to the programming language Python

In our last post we told you that we will be learning a new programming language soon. Well, of course, one or the other would wonder why we chose the Java2Enterprise team just the programming language Python and not the languages such as Java widespread languages such as C ++, C # etc.

We have provided the benefits with Python and for comparison to the Java programming language below.

The programming language Python is very easy to learn and ideally suited for beginners. Of course, those who are already familiar with programming, well prepared because they can better imagine the structure and program structure.

Simply learning does not mean that the language is no good. For example, the programming language Scratch. Python is one of the four programming languages that is represented by Google. In addition to web development, we also applied Python in science namely in the field of mathematics and physics. We will get to know later modules such as matplotlib etc. with which we can simulate and solve mathematical problems.

So this is not a toy but a near-machine programming language that has its own pitfalls.

Benefits of Python:

Python provides the developer with a simple and unique syntax.
Clear structure of the program flow.
As with Java, the programming language is platform independent, which means that the same code can run on multiple operating systems.
In Python, all data is stored as objects. The advantage is that the objects are treated uniformly under several types.
The user does not have to worry about memory allocation.
Solve and simulate mathematical problems with Python.


Disadvantages of Python:

No unified development environment.
Errors in the code are not displayed.


Distribution of Python:

Python is one of the four official programming languages of the online service giant Google.
YouTube was largely developed using Python.
NASA uses Python for software development related to space shuttle missions.
Hollywood, too, relies on Python. The special effects in the movies like Star Wars, Indiana Jones, Pirates of the Caribbean etc. were programmed with Python.
Python is used in many companies worldwide for general hardware and software development.


Installing Python on Windows:

Python is a freely available programming language that can be used on different operating systems. The latest Python versions can be downloaded from the official Python website http://www.python.org

For installation under Windows, call the executable file with the extension .exe which you have downloaded from the internet and install Python on the computer.

Select the installation directory C:\Python36

After the installation you will see in the start menu the folder Python x.x where you will see the IDLE, a Python development environment. In the future, we will write all our programs in IDLE and compile them there as well. IDLE itself was written in Python.


Installing Python on Linux:

The installation under Ubuntu is very easy. Start the console (terminal) and type the following command: sudo apt install idle3
You can then start the IDLE program with the idle3 command. It then appears in the starter and can stay in it.


Installing Python on macOS:

The latest versions can be downloaded from the official Python website https://www.python.org/ After double-clicking on the file with the extension .dmg or .pkg the installation starts. If you do not make any changes, Python ends up in the Applications directory. In it you will find an entry for the IDLE development environment, which you can drag to the desktop as a shortcut.

Soon we will try the first steps with Python. Have fun programming.

Kommentare

Beliebte Posts aus diesem Blog

How can I transform a .jar file to a .bat file?

Raspberry Pi als echten Web- und Mailserver einsetzen (German)

Umrechnung von Grad Celsius nach Grad Fahrenheit