3 Reasons Beginners to Start Python

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.

What kind of language is Python?

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.

Where is Python used?

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.

Python is also recommended for the topic of "machine learning" in recent years

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.

Why you should choose Python

So why is Python recommended for programming beginners? This time, I will tell you the reason in three parts.

High productivity

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.

Can be used for general purposes

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.

High readability (readability)

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.

What are the drawbacks of Python?

Python is a great language, but it has two drawbacks.

Execution speed is slow

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.

Less Japanese information than other languages

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

3 Reasons Beginners to Start Python
Start to Selenium using python
~ Tips for beginners to Python ③ ~
Start python
python beginners tried to find out
Updated to Python 2.7.9
Answer to AtCoder Beginners Selection by Python3
Start using Python
Python quick start
10 Python errors that are common to beginners
Beginners practice Python
Python beginner's note
"Backport" to python 2
Memo # 4 for Python beginners to read "Detailed Python Grammar"
The fastest way for beginners to master Python
Python for super beginners Python for super beginners # Easy to get angry
Python beginners tried to code some energy drinks
Memo # 1 for Python beginners to read "Detailed Python Grammar"
Try to calculate RPN in Python (for beginners)
Memo # 2 for Python beginners to read "Detailed Python Grammar"
Memo # 7 for Python beginners to read "Detailed Python Grammar"
Introduction to Programming (Python) TA Tendency for beginners
Memo # 6 for Python beginners to read "Detailed Python Grammar"
How to make Python faster for beginners [numpy]
Memo # 5 for Python beginners to read "Detailed Python Grammar"
Python Beginner's Guide (Functions)
How to install Python
Changes from Python 2 to Python 3.0
Python beginners organize heapsort
Rewrite Python2 code to Python3 (2to3)
How to install python
python decorator to retry
Introduction to Python language
Python beginners organize quicksort
Python beginners touch Pytorch (3)
Introduction to OpenCV (python)-(2)
python textbook for beginners
Python Dictionary Beginner's Guide
Note to daemonize python
Reasons to use logarithm
Introducing Python 2.7 to CentOS 6.6
Python beginners touch Pytorch (1)
Python beginners touch Pytorch (2)
Connect python to mysql
[Python MinMaxScaler] Normalize to 0 ~ 1
Python Beginner's Guide (Introduction)
OpenCV for Python beginners
python beginners tried to predict the number of criminals
Even beginners want to say "I fully understand Python"
Python that I would like to recommend to programming beginners
Python beginners try adding basic auth to Django admin
How to convert Python # type for Python super beginners: str
[For beginners] How to study Python3 data analysis exam
Python beginners talk about how to remember this much
Preparing to start "Python machine learning programming" (for macOS)
Python # How to check type and type for super beginners
Tips to look at before you start writing Python
Connect to BigQuery with Python
[2020.8 latest] How to install Python
[python] Convert date to string
How to install Python [Windows]