Home > Article > Backend Development > Do I need programming basics to learn python?
"Can I learn Python if I have zero foundation in programming?" This is a question that many beginners often ask me. Of course, the better the foundation in computers, the better it will be for learning any new programming language. But if you have zero foundation in learning programming languages, don’t worry, because no matter which language you use as an introductory language for learning programming, there is always a beginning.
From my personal point of view, Python is the most appropriate language for learning programming. (Recommended learning: Python video tutorial)
Every student who has studied C language in computer science majors in college agrees that C language is not a good introductory language. Many readers who once determined to learn programming decided not to learn programming again after learning C language. Therefore, whether to learn C language seems to have become a screening criterion for entering the programming industry.
However, if Python is used as an introductory programming language, there will be no dilemmas similar to C language. At present, some universities are gradually starting to use Python as an introductory programming language for college students majoring in software (and even non-software majors).
The idea throughout this tutorial is that you can learn Python with zero foundation. The goal of this tutorial is to learn Python from scratch with beginners. Therefore, if you have zero foundation in programming, there is no need to hesitate, just feel free to learn it.
In addition, many beginners also face such a problem, that is, they have finished the tutorial, and the codes in the tutorial have been written and run by themselves, but they still don’t know how to develop a real application, I still don’t know how to solve the problem.
If you feel the same way, it only means that you lack practice and have too little code editing. In the process of going from zero basics in programming to a professional programmer, in addition to learning more basic knowledge, you must also deliberately cultivate your own programming thinking. There is no shortcut, and you can only rely on continuously accumulating your own code.
Of course, increasing the amount of code does not require us to write code blindly. If we can't find the direction to increase the amount of code, we can start by reading other people's code. It should be noted that when reading code written by others, you should think while reading and ask a few more questions, such as why the code is written this way, what is the intention, is there an easier way to achieve it, etc., if necessary You can also make necessary comments to the code. Not only that, on the premise of fully understanding other people's code, you can also try to modify the code and realize some of your own ideas. Only by doing this can you show that you have digested and absorbed other people's code.
Beginners will definitely encounter many problems when writing or debugging code. What should they do? The best way is to use the Internet to find answers and see how others have solved similar problems. Don't always limit yourself to your own thinking. Here, I would like to recommend Stack OverFlow, a website dedicated to answering questions about programming.
For more Python related technical articles, please visit the Python Tutorial column to learn!
The above is the detailed content of Do I need programming basics to learn python?. For more information, please follow other related articles on the PHP Chinese website!