Reference site: Three reasons programming beginners should start Python
There are many programming languages in a nutshell, and those who are about to start programming may be wondering which one to choose. For those who are new to programming, we recommend the language "Python", which is one of the "three major languages of Google" (C ++, Java, Python) and the only scripting language among them.
Python has a long history and is the second oldest of the major scripting languages Perl, Python, Ruby and PHP. It's also older than Java and C #. It's a bit minor in Japan, but it's popular overseas as an object-oriented scripting language.
Python is used by various companies. Google's first web crawler was written in Python, which is used to build automated advertising management systems and for a variety of internal tasks. Many Youtube systems are written in Python. It is also used by many companies such as NASA and Microsoft. It is a language with various achievements, such as famous software such as Dropbox and Torrent written in Python.
Recently, I think you often hear the keywords "machine learning," "AI," and "big data." I started to see things like "data scientists" and "machine learning engineers" in job vacancies. With its extensive library of machine learning and advanced numerical calculations, Python stands out in this area. In the annual income ranking by programming language in 2016, it was ranked first.
So why is Python recommended for programming beginners? This time, I will tell you the reason in three parts.
For example, in Python, a program that displays 1 to 10 in order is written as follows.
for index in range(1, 11):
print(index)
The program that reads line by line from the file and displays it is as follows.
for line in open("myfile.txt", "r"):
print(line)
As you can see, it's very easy to write. If you learn programming while making something, you can learn the next technique more and more with short code and time.
Python is a generic language. What this means is that Python alone can create websites, GUIs *, complex scientific calculations and games, and even applications for robots. Of course, games require knowledge and skills to create games, and websites require specialized knowledge and skills. However, it is difficult in terms of learning cost to relearn a programming language according to what you want to make. I want to program as a hobby, but I have too many things and interests to make! It can be said that it is the best language for those who say.
Python is a very readable language and is sometimes referred to as "executable pseudocode". It is designed not to use symbols as much as possible, and there is no need to write $ (dollar mark) or curly braces / end that indicate the range of blocks, which are often used in other languages, and when entering conditions in if statements. You don't even need parentheses. I wrote two sample codes earlier, but the writing method is almost the same even though it is a completely different process of "example of displaying from 1 to 10 in order" and "example of reading and displaying line by line from a file". It has become. This is because the language is designed to be consistent in function, and as you get used to it, you can intuitively write code such as "This way, you can do this kind of processing." The readability of the code means that you can easily read and understand the human code, and the work of modifying, extending, and incorporating it into your program will be completed immediately. In addition, it is easy to read, so it is easy to understand the processing contents, and it is easy to discover the optimum algorithm and unnecessary processing.
Python is a great language, but it has two drawbacks.
It runs slower than other languages. In recent years, due to improvements in PC specifications and the language itself, there are few cases where the execution speed is a concern, but there are times when you really want to emphasize the processing speed. There are plenty of ways to improve execution speed, but it's also true that they can be difficult without some proficiency in the language.
In Japan, Python is still a minor treatment. It cannot be said that there is a lot of Japanese information in books and the Internet. However, these days have increased a little, so it's not pessimistic.
Recommended Posts