As you are learning Python with each of the lessons in this course, consider using one or more of these strategies:
- Read the introduction section at the top of the lesson, followed by the summary section at the end, and then the rest of the lesson. The introduction and summary will prime your mind with an overview of the material and make you better able to absorb the more detailed inner sections.
- Type each example manually (don’t copy and paste) into a Python environment and run it. The act of typing it yourself will force you to pay better attention to what’s going on and understand the details. (You may have to first type code of prior examples to make some subsequent examples work.) If you don’t already have a Python environment set up, I recommend you try Google Colab. It’s a browser-based Python notebook, requires no local machine setup and is easy to use.
- As extra practice, change the examples to come up with your own versions that are modified in some meaningful way. Type those in and run them as well. Using this strategy, you effectively create your own exercises to solidify your understanding.