How do people with 0 basics get started with Python? Is Python difficult?

Life is too short, I use Python, why do I say this, because we have a golden sentence in automated testing: after learning Python, you can go to heaven~

Not much nonsense, I believe many people have heard the previous news about Python entering elementary school textbooks, Python entering Zhejiang Province college entrance examination and other news. What is the charm of Python with so many titles? Why do you say that in 2018, Python is the language you most want to learn? And why everyone is so concerned about Python~ Let's analyze it

11.jpg

Similarly, many people will have such doubts

 

Change career to learn Python, can you learn it with 0 basics?

 

How difficult is Python?

 

Just like when I first started learning Python, I also had these questions. Let's analyze it.


The first question: Is it difficult to learn Python?

 

Are lower-level programs harder to learn, and higher-level programs easier?

 

On the surface, yes.

 

However, in very high abstract computing, advanced Python programming is also very difficult to learn, so high-level programming language is not equal to simplicity.

 

However, for beginners and for common tasks, the Python language is very simple and easy to use.


The second question: Can I learn Python with 0 basics?

 

First of all I personally favor Python as an entry language:

 

1. The syntax is simple and clear. The first language is actually grammar + Flow control, while Python's grammar is simple, the code is highly readable, and it is easy to get started. 


2. The philosophy of Python is "there is only one best way to do something", which is very helpful for beginners to regulate their own learning, and also helps beginners to read other people's code (compared to Perl). The code is simply unreadable)


3. Develop good habits. Python has strict requirements for code, especially indentation, which is very helpful for beginners to develop good coding habits


4. The syntax design of Python is very good (the negative example is PHP), and the ideas are relatively modern, which can make it easier to understand some ideas of modern programming languages.


5. Python is still the traditional Class-based OO (compared to Javascript's prototype-based OO), and like Java, C#, and Ruby, it is more popular. It is also more appropriate to learn Design Pattern from Python. 


6. Python's built-in data structure is clear and easy to use (C provides a little less, PHP's is a little messy), and at the same time there are more libraries and a lot of excellent code (compared to PHP, there are many bad codes, misleading newcomers). 


7. There are many free books on Python (in English), and you can find a lot of information. At the same time, the (foreign) community is relatively concentrated, and you can ask the experts if you have any questions.


8. Python is widely used in other fields, such as scientific computing, etc. Python is very suitable for learning a language as a tool.

 

 

The third question: How to learn Python?

 

If you choose to study by yourself, I would like to give you a few suggestions:

 

1. Find a tutorial that is easy to understand and has better routines, and read it from beginning to end. Don't read a lot of books, just focus on one. Play all the routines in it by hand to understand why.

 

2. Find a practical project to practice. Better to have real projects to do. You can find a few classmates to make a website together. Note that real projects do not have to be commercial projects.

  

3. It is best to find someone who already knows python. Ask him for some study planning advice, and then ask him for guidance where you get stuck. This will do more with less.


4. In addition, in addition to learning programming languages, I also take into account the basics of computer and English.


5. Not only to learn to write code, but also to learn to read code, but also to be able to debug code. Read the error messages of your own programs. Find some programs on github and read other people's code.

 

6. Learn to check documents and make good use of search engines and developer communities.

 


Of course, if you have zero foundation, there is no great leader around you, and you can't learn by yourself, I advise you to give up, or find a training institution to spend some money to learn.

 

Development is boring, and it is more painful to learn in the early stage.




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324782605&siteId=291194637