Writing programs (or programming) is a very creative and rewarding job. There are many reasons why you need to program to solve a problem, but you can use programming to solve your own difficult data analysis problems, it is a pleasure, but also can help others to solve the same problem, this may be you use to learn programming a reason worth considering. This book assumes that everyone needs to learn to program, and once you learn to program, you can use this programming skill to solve all of your problems.
In our current daily life, there is no shortage of computers, from notebooks to smartphones are used in a large number of. We are all taking these computers as our personal assistants, because these computers have provided us with a lot of help. The main way of the current computer hardware is to continuously ask us a question, "What do you need me to do next?" ”
Programmers put an operating system and a lot of application development into the PDA Hardware, and then we can use this PDA To do a lot of useful and different things.
If we know how to use a language to let the computer know what to do next, the computer will help us do it quickly and remember a lot of useful information. If we learn a language, we can keep the computer repeating the same task. Interestingly, computers like to do things that are repetitive and tedious, and it's better than people doing these things.
For example, let's take a look at the number of words in the paragraph that you read earlier in this chapter and how many times each word is used. You will find it easy to understand the meaning of these words in just a few seconds, but it will be difficult for you to count the number of words and use of each word, because human intelligence is not designed to be used. To the computer, the situation is just the opposite, it is difficult to read and understand the text, but let it calculate how many words to use, each word repeated use of the number of times, which is much faster than human. This example is as follows:
Python words.py
Enter File:words.txt
to 16
My personal Information Analysis assistant quickly told me how many words were used in the first three paragraphs.
In this case, the use of tools is a normal thing when human beings face their own problems, and using a computer tool requires learning the language of communication to the computer. Once you have learned the new language, you will be able to do the usual tasks for your computer, and you can do some creative, sensory and inventive tasks.
Cai Junsheng qq:9073204 Shenzhen
Chapter One why learn to write programs?