Posts

Es werden Posts vom April, 2019 angezeigt.

Sorting inputs in Python

Bild
In science subjects such as mathematics, one has to sort numerical values according to their size when calculating the median, but also when making a list of names by sorting the words alphabetically. Of course, Python also provides a method for this function called sort (). This method reads the values in a list and sorts them in memory. Of course, the programmer must write the program so that the user can input the values without having any knowledge about programming and can only read the result in a correct order. We did the work and wrote a program in python that sorted out values and output them in the correct order. Soon we will publish the program in C # and in Java. YOU CAN DOWNLOAD THE CODE >> HERE <<

Sortieren von Eingaben in Python

Bild
In den Naturwissenschaftlichen Fächer wie Mathematik muss man beim berechnen des Medians Zahlenwerte nach ihrer Größe sortieren aber auch beim stellen einer Namensliste indem die Wörter Alphabetisch sortiert werden. Natürlich bietet Python auch eine Methode für diese Funktion mit dem Bezeichnung sort(). Diese Methode liest die Werte in einer Liste durch und sortiert diese im Speicher. Natürlich muss der Programmierer das Programm so schreiben, sodass der Benutzer die Werte, ohne jegliche Kenntnisse über das Programmieren zu haben, eingeben und nur das Ergebnis in einer richtigen Reihenfolge ablesen kann. Wir haben uns die Arbeit gemacht und ein Programm in Python geschrieben, welches Werte aussortiert und diese mit der richtigen Reihenfolge ausgibt. Demnächst werden wir das Programm in C# und in Java veröffentlichen. SIE KÖNNEN DEN CODE >> HIER << RUNTERLADEN

Loops in Python

Bild
As is usual in almost all programming languages, so-called loops exist in the programming language Python. They are part of a modern programming language and will follow us in the next topics why we would like to go into the topic area exactly. The Java2Enterprise team mainly uses the programming languages Java, Python and C #. In addition, we use the programming language R for mathematical or statistical calculations, which derives from the programming language S. In the most common programming languages, there are loops such as the for loop, while loop, do-while loop. The language C # has a sleeve in the ace, because it has four loop types. The fourth is the so-called foreach loop. We have a much easier time with Python programming because we only use the For loop, also called the enumeration loop, and the while loop, the so-called condition-checking loop. Let´s start with a simple example. We will program an enumerative loop and use a module that contains the name &qu

Schleifen in Python

Bild
Wie in fast allen Programmiersprachen es üblich ist gibt es auch in der Programmiersprache Python die sogenannten Schleifen. Sie sind ein Bestandteil einer modernen Programmiersprache und werden uns in den Nächsten Themen verfolgen weshalb wir auf das Themengebiet genau gehen möchten. Wir das Java2Enterprise Team verwenden hauptsächlich die Programmiersprachen Java, Python und C#. Darüber hinaus verwenden wir für Mathematische beziehungsweise für Statistische Rechnungen die Programmiersprache R welches sich von der Programmiersprache S ableitet. In den gängigsten Programmiersprachen gibt es Schleifen wie beispielsweise die for-Schleife, while-Schleife, Do-while-Schleife. Die Sprache C# hat noch ein Ärmel im Ass nämlich sie besitzt vier Schleifenarten. Die vierte ist die sogenannte foreach-Schleife. Wir haben es bei der Python Programmierung viel einfacher, denn wir verwenden nur die For-Schleife auch als aufzählende Schleife genannt und die while-Schleife die sogenannte Bedingung