Before starting to learn Python, novices will struggle with what kind of book to choose as an introductory textbook. Today we will talk about the book "Learning Python the Hard Way".
With the help of this book, you will learn a programming language through very simple exercises. Doing exercises is the only way for every programmer:
1. Complete each exercise from beginning to end.
2. Enter every program verbatim.
3. Let the program run.
That’s it, it may be very difficult at first, but you have to persevere. If you read this book through and spend an hour or two each night doing the exercises, you can lay a good foundation for your next programming book on Python. This book won't turn you into a programmer overnight, but it will help you master the most basic methods of learning programming.
The purpose of this book is to teach you the three most important skills you need as a newbie in programming: Reading and writing, attention to detail, and seeing differences
Reading and Writing
If you have a problem typing, then it will also be a problem for you to learn programming. Especially if you can't even type those strange characters in the program source code, forget about programming at all. Without this basic skill, it will be difficult for you to learn even the most basic principles of how software works.
Entering code samples and letting them run can help you remember the names of various symbols and become familiar with them. This process will also make you more familiar with the programming language.
Attention to details
The most important skill that distinguishes good programmers from bad programmers is the degree of attention to detail. In fact, this is the standard that distinguishes good from bad in any industry. You must pay attention to every tiny detail of your work, otherwise your work product will lack important elements. In terms of programming, the result you get is software that is full of bugs and difficult to use.
By typing out the examples in this book verbatim, you will train yourself through practice to focus on the details of your work
Discover differences
Programmers’ long years of work will cultivate an important skill, which is the ability to distinguish differences. An experienced programmer holding two subtly different programs can immediately point out the differences. Programmers have even created tools to make this easier, but we won't be using these tools. You have to train your brain the hard way first, and only then can you use these tools when you have some relevant abilities.
When you do each exercise, you will definitely write something wrong. It's inevitable that even experienced programmers will make mistakes from time to time. Your task is to compare what you have written with the correct answer and correct any differences. This process can train you to pay attention to your mistakes, bugs and other problems.
DO NOT COPY-PASTE
You must manually type out each exercise yourself. Copying and pasting will render these exercises pointless. The purpose of these exercises is to train your hands and brain thinking, so that you have the ability to read code, write code, and observe code. If you copy and paste, you are cheating yourself and the exercises will be ineffective.
Use the videos included in the book
The book "Learn Python the Hard Way" contains over 5 hours of instructional videos. For each exercise there is a video that either demonstrates the exercise or gives some tips for completing it. The best way to use videos is to first try completing the exercises without them and then review what you learned through the videos, or use the videos when you get stuck on a question. This will slowly allow you to learn programming through videos and build your skills in understanding code directly. Keep at it, and eventually you won't need the videos in the book or any videos to learn programming. You can see only the information you need.
The above is the detailed content of How about learning python the stupid way?. For more information, please follow other related articles on the PHP Chinese website!