Everyone gets stuck at some point when they’re learning to program, and one of the most important skills to learn as a programmer is how to get unstuck efficiently. This appendix outlines several ways to help you get unstuck when programming gets confusing.

First Steps

When you’re stuck, your first step should be to assess your situation. Before you can get help from anyone else, you’ll need to be able to answer the following three questions clearly:

• What are you trying to do?

• What have you tried so far?

• What results have you been getting?

Your answers should be as specific as possible. For the first question, explicit statements ...

Get Python Crash Course now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.