Python mistakes are normal
Python mistakes are part of learning, not a sign that you should stop. A beginner can type one tiny thing wrong and still be very close to the right answer.
Debugging is the calm process of investigating what went wrong, checking a small clue, and fixing one part at a time. The goal is not panic. The goal is progress.
A Python bug is not proof that you failed. It is a clue that something small needs attention.